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,
ABIVersion version) |
protected |
Request(T target,
long sequence,
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.
|
akka.actor.ActorRef |
getReplyTo()
Return the return address where responses to this request should be directed to.
|
abstract RequestFailure<T,?> |
toRequestFailure(RequestException cause)
Return a
RequestFailure for this request, caused by a RequestException . |
cloneAsVersion, getSequence, getTarget, getVersion, toString, toVersion, writeReplace
protected Request(@Nonnull C request, @Nonnull ABIVersion version)
@Nonnull public final akka.actor.ActorRef getReplyTo()
@Nonnull public abstract 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)
Message
Message.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(@Nonnull ABIVersion version)
Message
ABIVersion
s. 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.