@Beta public final class ConnectClientSuccess extends RequestSuccess<ClientIdentifier,ConnectClientSuccess>
ConnectClientRequest
. Client actor which initiated this connection should use
the version reported via Message.getVersion()
of this message to communicate with this backend. Should this backend
fail, the client can try accessing the provided alternates.Constructor and Description |
---|
ConnectClientSuccess(ClientIdentifier target,
long sequence,
akka.actor.ActorRef backend,
List<akka.actor.ActorSelection> alternates,
org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree dataTree,
int maxMessages) |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Add attributes to the output of
Message.toString() . |
protected ConnectClientSuccess |
cloneAsVersion(ABIVersion version)
Create a copy of this message which will serialize to a stream corresponding to the specified method.
|
protected org.opendaylight.controller.cluster.access.commands.ConnectClientSuccessProxyV1 |
externalizableProxy(ABIVersion version)
Instantiate a serialization proxy for this object for the target ABI version.
|
List<akka.actor.ActorSelection> |
getAlternates()
Return the list of known alternate backends.
|
akka.actor.ActorRef |
getBackend() |
Optional<org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree> |
getDataTree() |
int |
getMaxMessages() |
getSequence, getTarget, getVersion, toString, toVersion, writeReplace
@Nonnull public List<akka.actor.ActorSelection> getAlternates()
@Nonnull public akka.actor.ActorRef getBackend()
public Optional<org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree> getDataTree()
public int getMaxMessages()
protected org.opendaylight.controller.cluster.access.commands.ConnectClientSuccessProxyV1 externalizableProxy(ABIVersion version)
Message
ABIVersion
s. This method should never fail, as any compatibility
checks should have been done by Message.cloneAsVersion(ABIVersion)
.externalizableProxy
in class RequestSuccess<ClientIdentifier,ConnectClientSuccess>
version
- Requested ABI versionprotected ConnectClientSuccess cloneAsVersion(ABIVersion version)
Message
Message.Message(Message, ABIVersion)
.cloneAsVersion
in class Message<ClientIdentifier,ConnectClientSuccess>
version
- target ABI versionprotected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Message
Message.toString()
. Subclasses wanting to contribute additional information
should override this method. Any null attributes will be omitted from the output.addToStringAttributes
in class Message<ClientIdentifier,ConnectClientSuccess>
toStringHelper
- a MoreObjects.ToStringHelper
instanceMoreObjects.ToStringHelper
passed in as argumentCopyright © 2019 OpenDaylight. All rights reserved.