@Beta public abstract class ClientActorBehavior<T extends BackendInfo> extends AbstractClientActorBehavior<C> implements org.opendaylight.yangtools.concepts.Identifiable<ClientIdentifier>
AbstractClientActor.| Modifier and Type | Class and Description | 
|---|---|
| protected static interface  | ClientActorBehavior.ConnectionConnectCohortConnection reconnect cohort, driven by this class. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | ClientActorBehavior(@NonNull ClientActorContext context,
                   @NonNull BackendInfoResolver<T> resolver) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| protected abstract @NonNull ClientActorBehavior.ConnectionConnectCohort | connectionUp(@NonNull ConnectedClientConnection<T> newConn)Callback invoked when a new connection has been established. | 
| AbstractClientConnection<T> | getConnection(Long shard)Get a connection to a shard. | 
| ClientIdentifier | getIdentifier() | 
| protected abstract void | haltClient(@NonNull Throwable cause)Halt And Catch Fire. | 
| protected abstract @Nullable ClientActorBehavior<T> | onCommand(@NonNull Object command)Override this method to handle any command which is not handled by the base behavior. | 
| protected @NonNull BackendInfoResolver<T> | resolver()Override this method to provide a backend resolver instance. | 
context, persistenceId, selfprotected ClientActorBehavior(@NonNull ClientActorContext context, @NonNull BackendInfoResolver<T> resolver)
public final ClientIdentifier getIdentifier()
getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<ClientIdentifier>public void close()
close in interface AutoCloseableclose in class AbstractClientActorBehavior<ClientActorContext>public final AbstractClientConnection<T> getConnection(Long shard)
shard - Shard cookieInversibleLockException - if the shard is being reconnectedprotected abstract void haltClient(@NonNull Throwable cause)
cause - Failure causeprotected abstract @Nullable ClientActorBehavior<T> onCommand(@NonNull Object command)
command - the command to processprotected final @NonNull BackendInfoResolver<T> resolver()
protected abstract @NonNull ClientActorBehavior.ConnectionConnectCohort connectionUp(@NonNull ConnectedClientConnection<T> newConn)
newConn - New connectionCopyright © 2019 OpenDaylight. All rights reserved.