com.sun.enterprise.ee.cms.core
Class GMSCacheable
java.lang.Object
com.sun.enterprise.ee.cms.core.GMSCacheable
- All Implemented Interfaces:
- java.io.Serializable, java.util.Comparator
public class GMSCacheable
- extends java.lang.Object
- implements java.io.Serializable, java.util.Comparator
Support class for DistributedStateCacheImpl. This class provides an
encapsulation for the details that represent a composite key for the
cache.
- Version:
- $Revision: 1012 $
- Author:
- Shreedhar Ganapathy
Date: May 9, 2005
- See Also:
- Serialized Form
|
Constructor Summary |
GMSCacheable(java.lang.String componentName,
java.lang.String memberTokenId,
java.lang.Object key)
|
GMSCacheable(java.lang.String componentName,
java.lang.String memberTokenId,
java.io.Serializable key)
|
|
Method Summary |
int |
compare(java.lang.Object o,
java.lang.Object o1)
|
boolean |
equals(java.lang.Object o)
We compare the contents of the GMSCacheable argument passed in with
the contents of this instance and determine if they are the same. |
java.lang.String |
getComponentName()
|
java.lang.Object |
getKey()
|
java.lang.String |
getMemberTokenId()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
GMSCacheable
public GMSCacheable(java.lang.String componentName,
java.lang.String memberTokenId,
java.io.Serializable key)
GMSCacheable
public GMSCacheable(java.lang.String componentName,
java.lang.String memberTokenId,
java.lang.Object key)
compare
public int compare(java.lang.Object o,
java.lang.Object o1)
- Specified by:
compare in interface java.util.Comparator
hashCode
public int hashCode()
-
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
-
We compare the contents of the GMSCacheable argument passed in with
the contents of this instance and determine if they are the same.
- Specified by:
equals in interface java.util.Comparator- Overrides:
equals in class java.lang.Object
getComponentName
public java.lang.String getComponentName()
getMemberTokenId
public java.lang.String getMemberTokenId()
getKey
public java.lang.Object getKey()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2010. All Rights Reserved.