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
public abstract class AbstractClientActorBehavior<C extends org.opendaylight.controller.cluster.access.client.AbstractClientActorContext>
extends Object
implements AutoCloseable
Base behavior attached to
AbstractClientActor.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected final @NonNull Ccontext()Return anAbstractClientActorContextassociated with thisAbstractClientActor.protected final @NonNull StringReturn the persistence identifier associated with thisAbstractClientActor.final @NonNull akka.actor.ActorRefself()Return anActorRefof this ClientActor.
-
Method Details
-
context
Return anAbstractClientActorContextassociated with thisAbstractClientActor.- Returns:
- A client actor context instance.
-
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
-