Class JCacheIdentifier
java.lang.Object
com.tangosol.coherence.jcache.common.JCacheIdentifier
- All Implemented Interfaces:
ExternalizableLite,PortableObject,Serializable
An internal class to represent the unique identity of a JCache cache.
- Since:
- Coherence 12.1.3
- Author:
- jf 2013.10.24
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructsJCacheIdentifierJCacheIdentifier(String sCanonicalCacheName) ConstructsJCacheIdentifierfrom the internal encoded CoherenceBased cache map name.JCacheIdentifier(String sMgrUri, String sCacheName) ConstructsJCacheIdentifier -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the JCache CacheManager URI, a unique identifier for the JCache CacheManagerGet the JCache Adapter internal name for thisJCacheIdentifiergetName()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.toString()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 Details
-
JCacheIdentifier
public JCacheIdentifier()ConstructsJCacheIdentifier -
JCacheIdentifier
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
ConstructsJCacheIdentifier- Parameters:
sMgrUri- unique identifier forCacheManagersCacheName- JCache name
-
-
Method Details
-
getName
Get the JCache map name- Returns:
- JCache name
-
getCacheManagerURI
Get the JCache CacheManager URI, a unique identifier for the JCache CacheManager- Returns:
CacheManagerURI context
-
getCanonicalCacheName
Get the JCache Adapter internal name for thisJCacheIdentifier- Returns:
- internal JCache Adapter coherence-based map name.
-
equals
-
hashCode
public int hashCode() -
toString
-
readExternal
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
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
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
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
-