Class AbstractIdentifiablePayload.AbstractProxy<T extends Identifier>
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.persisted.AbstractIdentifiablePayload.AbstractProxy<T>
-
- All Implemented Interfaces:
Externalizable,Serializable,AbstractIdentifiablePayload.SerialForm
- Enclosing class:
- AbstractIdentifiablePayload<T extends Identifier>
protected abstract static class AbstractIdentifiablePayload.AbstractProxy<T extends Identifier> extends Object implements AbstractIdentifiablePayload.SerialForm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractProxy()protectedAbstractProxy(byte[] serialized)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description byte[]bytes()Return the serial form of this object contents, corresponding toAbstractIdentifiablePayload.serialized.protected abstract @NonNull Identifiable<T>createObject(@NonNull T identifier, byte @NonNull [] serialized)voidreadExternal(byte[] bytes)Restore state from specified serialized form.protected abstract @NonNull TreadIdentifier(@NonNull DataInput in)ObjectreadResolve()Resolve this proxy to an actualAbstractIdentifiablePayload.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.controller.cluster.datastore.persisted.AbstractIdentifiablePayload.SerialForm
readExternal, writeExternal
-
-
-
-
Method Detail
-
bytes
public final byte[] bytes()
Description copied from interface:AbstractIdentifiablePayload.SerialFormReturn the serial form of this object contents, corresponding toAbstractIdentifiablePayload.serialized.- Specified by:
bytesin interfaceAbstractIdentifiablePayload.SerialForm- Returns:
- Serialized form
-
readExternal
public final void readExternal(byte[] bytes) throws IOExceptionDescription copied from interface:AbstractIdentifiablePayload.SerialFormRestore state from specified serialized form.- Specified by:
readExternalin interfaceAbstractIdentifiablePayload.SerialForm- Parameters:
bytes- Serialized form, as returned byAbstractIdentifiablePayload.SerialForm.bytes()- Throws:
IOException- when a deserialization problem occurs
-
readResolve
public final Object readResolve()
Description copied from interface:AbstractIdentifiablePayload.SerialFormResolve this proxy to an actualAbstractIdentifiablePayload.- Specified by:
readResolvein interfaceAbstractIdentifiablePayload.SerialForm- Returns:
- A payload.
-
readIdentifier
protected abstract @NonNull T readIdentifier(@NonNull DataInput in) throws IOException
- Throws:
IOException
-
createObject
protected abstract @NonNull Identifiable<T> createObject(@NonNull T identifier, byte @NonNull [] serialized)
-
-