public interface ISyncHash
Modifier and Type | Method and Description |
---|---|
void |
clear()
Empty a hash - causes cluster sync as needed
|
Object |
get(String key)
Get an object from hash - performs required data validation/VM synchronization checks as needed.
|
String |
getName()
Get name
|
Set |
keySet()
Return a set of all of the keys in the current hash.
|
Object |
put(String key, Object v)
Add something to the hash; will generate appropriate cluster sync methods and LRU behavior.
|
Object |
put(String key, Object v, Calendar cal)
Deprecated.
use put(String,Object,Date) insatead.
|
Object |
put(String key, Object v, Date date)
Add something to the hash; will generate appropriate cluster sync methods and LRU behavior.
|
Object |
remove(String key)
Remove an item
|
int |
size()
Return the size of the current hash
|
String getName()
Object put(String key, Object v) throws NullPointerException
key
- Use meaningful, reproducable key names for proper behavior. Limit length; don't use multi-K length keys. 64chars or less is a good guide; 16 chars is optimal for performance but may not be unique.v
- valueNullPointerException
- if the create had failed in some unexpected wayObject put(String key, Object v, Calendar cal)
key
- Use meaningful, reproducable key names for proper behavior. Limit length; don't use multi-K length keys. 64chars or less is a good guide; 16 chars is optimal for performance but may not be unique.v
- valuecal
- Calendar object specifying the expiration time for this object in the hash. The object added will expire at the time specified by the calendar. Null is not allowed.Object put(String key, Object v, Date date)
key
- Use meaningful, reproducable key names for proper behavior. Limit length; don't use multi-K length keys. 64chars or less is a good guide; 16 chars is optimal for performance but may not be unique.v
- valuedate
- Date object specifying the expiration time for this object in the hash. The object added will expire at the time specified by the date. Null is not allowed.Object get(String key)
key
- a keyvoid clear()
Object remove(String key)
key
- a keyint size()
Set keySet()