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
ConstructorDescriptionConstructsJCacheIdentifier
JCacheIdentifier
(String sCanonicalCacheName) ConstructsJCacheIdentifier
from the internal encoded CoherenceBased cache map name.JCacheIdentifier
(String sMgrUri, String sCacheName) ConstructsJCacheIdentifier
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the JCache CacheManager URI, a unique identifier for the JCache CacheManagerGet the JCache Adapter internal name for thisJCacheIdentifier
getName()
Get the JCache map nameint
hashCode()
void
readExternal
(PofReader pofReader) Restore the contents of a user type instance by reading its state using the specified PofReader object.void
readExternal
(DataInput dataInput) Restore the contents of this object by loading the object's state from the passed DataInput object.toString()
void
writeExternal
(PofWriter pofWriter) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.void
writeExternal
(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
ConstructsJCacheIdentifier
from 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 forCacheManager
sCacheName
- 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:
CacheManager
URI 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:PortableObject
Restore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
readExternal
in 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:PortableObject
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
writeExternal
in 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:ExternalizableLite
Restore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
readExternal
in 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 occurs
-
writeExternal
Description copied from interface:ExternalizableLite
Save the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
writeExternal
in interfaceExternalizableLite
- Parameters:
dataOutput
- the DataOutput stream to write the state of this object to- Throws:
IOException
- if an I/O exception occurs
-