T - Target identifier typeC - Message type@Beta public abstract class Request<T extends org.opendaylight.yangtools.concepts.WritableIdentifier,C extends Request<T,C>> extends Message<T,C>
RequestSuccess or a RequestFailure message.| Modifier | Constructor and Description |
|---|---|
protected |
Request(C request,
@NonNull ABIVersion version) |
protected |
Request(T target,
long sequence,
@NonNull akka.actor.ActorRef replyTo) |
| 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 abstract AbstractRequestProxy<T,C> |
externalizableProxy(ABIVersion version)
Instantiate a serialization proxy for this object for the target ABI version.
|
@NonNull akka.actor.ActorRef |
getReplyTo()
Return the return address where responses to this request should be directed to.
|
abstract @NonNull RequestFailure<T,?> |
toRequestFailure(@NonNull RequestException cause)
Return a
RequestFailure for this request, caused by a RequestException. |
cloneAsVersion, getSequence, getTarget, getVersion, toString, toVersion, writeReplaceprotected Request(T target, long sequence, @NonNull akka.actor.ActorRef replyTo)
protected Request(C request, @NonNull ABIVersion version)
public final @NonNull akka.actor.ActorRef getReplyTo()
public abstract @NonNull RequestFailure<T,?> toRequestFailure(@NonNull RequestException cause)
RequestFailure for this request, caused by a RequestException.cause - Failure causeRequestFailure corresponding to this requestprotected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
MessageMessage.toString(). Subclasses wanting to contribute additional information
should override this method. Any null attributes will be omitted from the output.protected abstract AbstractRequestProxy<T,C> externalizableProxy(ABIVersion version)
MessageABIVersions. This method should never fail, as any compatibility
checks should have been done by Message.cloneAsVersion(ABIVersion).version - Requested ABI versionCopyright © 2019 OpenDaylight. All rights reserved.