Package com.tangosol.io.pof
Class PofBufferWriter.ReferenceLibrary
java.lang.Object
com.tangosol.io.pof.PofBufferWriter.ReferenceLibrary
- Enclosing class:
PofBufferWriter
A "library" of object references and their corresponding identities in
the POF stream.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IdentityHashMapA map from objects that can be referenced to their Integer identities. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintLook up an identity for an object.intRegister an object.
-
Field Details
-
m_mapIdentities
A map from objects that can be referenced to their Integer identities.
-
-
Constructor Details
-
ReferenceLibrary
public ReferenceLibrary()
-
-
Method Details
-
getIdentity
Look up an identity for an object.- Parameters:
o- the object- Returns:
- the identity, or -1 if the object is not registered
-
registerReference
Register an object.- Parameters:
o- the object- Returns:
- the assigned identity for the object
- Throws:
IllegalStateException- if the object is already registered
-