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()
protected
AbstractProxy(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)
void
readExternal(byte[] bytes)
Restore state from specified serialized form.protected abstract @NonNull T
readIdentifier(@NonNull DataInput in)
Object
readResolve()
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.SerialForm
Return the serial form of this object contents, corresponding toAbstractIdentifiablePayload.serialized
.- Specified by:
bytes
in interfaceAbstractIdentifiablePayload.SerialForm
- Returns:
- Serialized form
-
readExternal
public final void readExternal(byte[] bytes) throws IOException
Description copied from interface:AbstractIdentifiablePayload.SerialForm
Restore state from specified serialized form.- Specified by:
readExternal
in 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.SerialForm
Resolve this proxy to an actualAbstractIdentifiablePayload
.- Specified by:
readResolve
in 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)
-
-