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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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) final void
readExternal
(byte[] bytes) Restore state from specified serialized form.protected abstract @NonNull T
readIdentifier
(@NonNull DataInput in) final Object
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
-
Constructor Details
-
AbstractProxy
public AbstractProxy() -
AbstractProxy
protected AbstractProxy(byte[] serialized)
-
-
Method Details
-
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
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
Description copied from interface:AbstractIdentifiablePayload.SerialForm
Resolve this proxy to an actualAbstractIdentifiablePayload
.- Specified by:
readResolve
in interfaceAbstractIdentifiablePayload.SerialForm
- Returns:
- A payload.
-
readIdentifier
- Throws:
IOException
-
createObject
protected abstract @NonNull Identifiable<T> createObject(@NonNull T identifier, byte @NonNull [] serialized)
-