Class AbstractRead<T>
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.messages.VersionedExternalizableMessage
-
- org.opendaylight.controller.cluster.datastore.messages.AbstractRead<T>
-
- All Implemented Interfaces:
Externalizable
,Serializable
,SerializableMessage
- Direct Known Subclasses:
DataExists
,ReadData
public abstract class AbstractRead<T> extends VersionedExternalizableMessage
Abstract base class for ReadData and DataExists messages.- Author:
- gwu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRead()
AbstractRead(YangInstanceIdentifier path, short version)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract FluentFuture<T>
apply(DOMStoreReadTransaction readDelegate)
AbstractRead<T>
asVersion(short version)
YangInstanceIdentifier
getPath()
protected abstract AbstractRead<T>
newInstance(short withVersion)
abstract void
processResponse(Object reponse, SettableFuture<T> promise)
void
readExternal(ObjectInput in)
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.opendaylight.controller.cluster.datastore.messages.VersionedExternalizableMessage
getStreamVersion, getVersion, toSerializable, toString
-
-
-
-
Constructor Detail
-
AbstractRead
protected AbstractRead()
-
AbstractRead
public AbstractRead(YangInstanceIdentifier path, short version)
-
-
Method Detail
-
getPath
public YangInstanceIdentifier getPath()
-
readExternal
public final void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classVersionedExternalizableMessage
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classVersionedExternalizableMessage
- Throws:
IOException
-
asVersion
public AbstractRead<T> asVersion(short version)
-
apply
public abstract FluentFuture<T> apply(DOMStoreReadTransaction readDelegate)
-
processResponse
public abstract void processResponse(Object reponse, SettableFuture<T> promise)
-
newInstance
protected abstract AbstractRead<T> newInstance(short withVersion)
-
-