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 protectedAbstractRead()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)YangInstanceIdentifiergetPath()protected abstract AbstractRead<T>newInstance(short withVersion)abstract voidprocessResponse(Object reponse, SettableFuture<T> promise)voidreadExternal(ObjectInput in)voidwriteExternal(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:
readExternalin interfaceExternalizable- Overrides:
readExternalin classVersionedExternalizableMessage- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin 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)
-
-