Class JCacheIdentifier
- java.lang.Object
-
- com.tangosol.coherence.jcache.common.JCacheIdentifier
-
- All Implemented Interfaces:
ExternalizableLite,PortableObject,Serializable
public class JCacheIdentifier extends Object implements ExternalizableLite, PortableObject
An internal class to represent the unique identity of a JCache cache.- Since:
- Coherence 12.1.3
- Author:
- jf 2013.10.24
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JCacheIdentifier()ConstructsJCacheIdentifierJCacheIdentifier(String sCanonicalCacheName)ConstructsJCacheIdentifierfrom the internal encoded CoherenceBased cache map name.JCacheIdentifier(String sMgrUri, String sCacheName)ConstructsJCacheIdentifier
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetCacheManagerURI()Get the JCache CacheManager URI, a unique identifier for the JCache CacheManagerStringgetCanonicalCacheName()Get the JCache Adapter internal name for thisJCacheIdentifierStringgetName()Get the JCache map nameinthashCode()voidreadExternal(PofReader pofReader)Restore the contents of a user type instance by reading its state using the specified PofReader object.voidreadExternal(DataInput dataInput)Restore the contents of this object by loading the object's state from the passed DataInput object.StringtoString()voidwriteExternal(PofWriter pofWriter)Save the contents of a POF user type instance by writing its state using the specified PofWriter object.voidwriteExternal(DataOutput dataOutput)Save the contents of this object by storing the object's state into the passed DataOutput object.
-
-
-
Constructor Detail
-
JCacheIdentifier
public JCacheIdentifier()
ConstructsJCacheIdentifier
-
JCacheIdentifier
public JCacheIdentifier(String sCanonicalCacheName)
ConstructsJCacheIdentifierfrom the internal encoded CoherenceBased cache map name.- Parameters:
sCanonicalCacheName- canonical encoded CoherenceBased cache map name. Name encodes JCache Adapter CacheManager URI, the JCache Adapter implementation type for the JCache map. and the JCache Adapter JCache name.
-
JCacheIdentifier
public JCacheIdentifier(String sMgrUri, String sCacheName)
ConstructsJCacheIdentifier- Parameters:
sMgrUri- unique identifier forCacheManagersCacheName- JCache name
-
-
Method Detail
-
getName
public String getName()
Get the JCache map name- Returns:
- JCache name
-
getCacheManagerURI
public String getCacheManagerURI()
Get the JCache CacheManager URI, a unique identifier for the JCache CacheManager- Returns:
CacheManagerURI context
-
getCanonicalCacheName
public String getCanonicalCacheName()
Get the JCache Adapter internal name for thisJCacheIdentifier- Returns:
- internal JCache Adapter coherence-based map name.
-
readExternal
public void readExternal(PofReader pofReader) throws IOException
Description copied from interface:PortableObjectRestore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
readExternalin interfacePortableObject- Parameters:
pofReader- the PofReader from which to read the object's state- Throws:
IOException- if an I/O error occurs
-
writeExternal
public void writeExternal(PofWriter pofWriter) throws IOException
Description copied from interface:PortableObjectSave the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
writeExternalin interfacePortableObject- Parameters:
pofWriter- the PofWriter to which to write the object's state- Throws:
IOException- if an I/O error occurs
-
readExternal
public void readExternal(DataInput dataInput) throws IOException
Description copied from interface:ExternalizableLiteRestore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
readExternalin interfaceExternalizableLite- Parameters:
dataInput- the DataInput stream to read data from in order to restore the state of this object- Throws:
IOException- if an I/O exception occursNotActiveException- if the object is not in its initial state, and therefore cannot be deserialized into
-
writeExternal
public void writeExternal(DataOutput dataOutput) throws IOException
Description copied from interface:ExternalizableLiteSave the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
writeExternalin interfaceExternalizableLite- Parameters:
dataOutput- the DataOutput stream to write the state of this object to- Throws:
IOException- if an I/O exception occurs
-
-