public abstract class JComponentHandlers
extends csw.framework.scaladsl.ComponentHandlers
param: ctx the ActorContext
under which the actor instance of the component, which use these handlers, is created
param: cswCtx provides access to csw services e.g. location, event, alarm, etc
Constructor and Description |
---|
JComponentHandlers(akka.actor.typed.javadsl.ActorContext<TopLevelActorMessage> ctx,
JCswContext cswCtx) |
Modifier and Type | Method and Description |
---|---|
scala.concurrent.ExecutionContextExecutor |
ec() |
scala.concurrent.Future<scala.runtime.BoxedUnit> |
initialize()
Invokes the java helper (jInitialize) to initialize the component
|
abstract java.util.concurrent.CompletableFuture<java.lang.Void> |
jInitialize()
A Java helper that is invoked when the component is created.
|
abstract java.util.concurrent.CompletableFuture<java.lang.Void> |
jOnShutdown()
The onShutdown handler can be used for carrying out the tasks which will allow the component to shutdown gracefully
|
scala.concurrent.Future<scala.runtime.BoxedUnit> |
onShutdown()
Invokes the java helper (jOnShutdown) to shutdown the component
|
public JComponentHandlers(akka.actor.typed.javadsl.ActorContext<TopLevelActorMessage> ctx, JCswContext cswCtx)
public scala.concurrent.ExecutionContextExecutor ec()
public scala.concurrent.Future<scala.runtime.BoxedUnit> initialize()
initialize
in class csw.framework.scaladsl.ComponentHandlers
public abstract java.util.concurrent.CompletableFuture<java.lang.Void> jInitialize()
public abstract java.util.concurrent.CompletableFuture<java.lang.Void> jOnShutdown()
public scala.concurrent.Future<scala.runtime.BoxedUnit> onShutdown()
onShutdown
in class csw.framework.scaladsl.ComponentHandlers