Class PofStreamWriter.ReferenceLibrary
A "library" of object references and their corresponding identities in the POF stream.
Inherited Members
Namespace: Tangosol.IO.Pof
Assembly: Coherence.dll
Syntax
public class PofStreamWriter.ReferenceLibrary
Fields
m_mapIdentities
A map from objects that can be referenced to their integer identities.
Declaration
public Hashtable m_mapIdentities
Field Value
Type | Description |
---|---|
Hashtable |
Methods
getIdentity(object)
Look up an identity for an object.
Declaration
public int getIdentity(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | the object |
Returns
Type | Description |
---|---|
int | the identity, or -1 if the object is not registered |
registerReference(object)
Register an object.
Declaration
public int registerReference(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | the object |
Returns
Type | Description |
---|---|
int | the assigned identity for the object |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | if the object is already registered |