Class AbstractRequestProxy<T extends WritableIdentifier,C extends Request<T,C>>
- java.lang.Object
-
- org.opendaylight.controller.cluster.access.concepts.AbstractRequestProxy<T,C>
-
- Type Parameters:
T
- Target identifier type
- All Implemented Interfaces:
Externalizable
,Serializable
@Beta public abstract class AbstractRequestProxy<T extends WritableIdentifier,C extends Request<T,C>> extends Object
Abstract Externalizable proxy for use withRequest
subclasses.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRequestProxy()
protected
AbstractRequestProxy(@NonNull C request)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract @NonNull C
createRequest(@NonNull T target, long sequence, @NonNull ActorRef replyToActor)
void
readExternal(ObjectInput in)
protected Object
readResolve()
protected abstract @NonNull T
readTarget(@NonNull DataInput in)
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
AbstractRequestProxy
protected AbstractRequestProxy()
-
AbstractRequestProxy
protected AbstractRequestProxy(@NonNull C request)
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
createRequest
protected abstract @NonNull C createRequest(@NonNull T target, long sequence, @NonNull ActorRef replyToActor)
-
readResolve
protected final Object readResolve()
-
readTarget
protected abstract @NonNull T readTarget(@NonNull DataInput in) throws IOException
- Throws:
IOException
-
-