Class LocalHistoryRequest<T extends LocalHistoryRequest<T>>
java.lang.Object
org.opendaylight.controller.cluster.access.concepts.Message<T,C>
org.opendaylight.controller.cluster.access.concepts.Request<LocalHistoryIdentifier,T>
org.opendaylight.controller.cluster.access.commands.LocalHistoryRequest<T>
- Type Parameters:
T
- Message type
- All Implemented Interfaces:
Serializable
,Immutable
- Direct Known Subclasses:
CreateLocalHistoryRequest
,DestroyLocalHistoryRequest
,PurgeLocalHistoryRequest
public abstract class LocalHistoryRequest<T extends LocalHistoryRequest<T>>
extends Request<LocalHistoryIdentifier,T>
Abstract base class for
Request
s involving specific local history. This class is visible outside of this
package solely for the ability to perform a unified instanceof check.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.opendaylight.controller.cluster.access.commands.LocalHistoryRequest.SerialForm<T>
externalizableProxy
(ABIVersion version) Instantiate a serialization proxy for this object for the target ABI version.final LocalHistoryFailure
toRequestFailure
(RequestException cause) Return aRequestFailure
for this request, caused by aRequestException
.Methods inherited from class org.opendaylight.controller.cluster.access.concepts.Request
addToStringAttributes, getReplyTo
Methods inherited from class org.opendaylight.controller.cluster.access.concepts.Message
cloneAsVersion, getSequence, getTarget, getVersion, toString, toVersion, writeReplace
-
Method Details
-
toRequestFailure
Description copied from class:Request
Return aRequestFailure
for this request, caused by aRequestException
.- Specified by:
toRequestFailure
in classRequest<LocalHistoryIdentifier,
T extends LocalHistoryRequest<T>> - Parameters:
cause
- Failure cause- Returns:
RequestFailure
corresponding to this request
-
externalizableProxy
protected abstract org.opendaylight.controller.cluster.access.commands.LocalHistoryRequest.SerialForm<T> externalizableProxy(ABIVersion version) Description copied from class:Message
Instantiate a serialization proxy for this object for the target ABI version. Implementations should return different objects for incompatibleABIVersion
s. This method should never fail, as any compatibility checks should have been done byMessage.cloneAsVersion(ABIVersion)
.- Specified by:
externalizableProxy
in classRequest<LocalHistoryIdentifier,
T extends LocalHistoryRequest<T>> - Parameters:
version
- Requested ABI version- Returns:
- Proxy for this object
-