Class AbstractClientActorBehavior<C extends org.opendaylight.controller.cluster.access.client.AbstractClientActorContext>
- java.lang.Object
-
- org.opendaylight.controller.cluster.access.client.AbstractClientActorBehavior<C>
-
- Type Parameters:
C- Type of associated context
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ClientActorBehavior
@Beta public abstract class AbstractClientActorBehavior<C extends org.opendaylight.controller.cluster.access.client.AbstractClientActorContext> extends Object implements AutoCloseable
Base behavior attached toAbstractClientActor.- Author:
- Robert Varga
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected @NonNull Ccontext()Return anAbstractClientActorContextassociated with thisAbstractClientActor.protected @NonNull StringpersistenceId()Return the persistence identifier associated with thisAbstractClientActor.@NonNull akka.actor.ActorRefself()Return anActorRefof this ClientActor.
-
-
-
Method Detail
-
context
protected final @NonNull C context()
Return anAbstractClientActorContextassociated with thisAbstractClientActor.- Returns:
- A client actor context instance.
-
persistenceId
protected final @NonNull String persistenceId()
Return the persistence identifier associated with thisAbstractClientActor. This identifier should be used in logging to identify this actor.- Returns:
- Persistence identifier
-
self
public final @NonNull akka.actor.ActorRef self()
Return anActorRefof this ClientActor.- Returns:
- Actor associated with this behavior
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-