com.jivesoftware.forum.database.querycache
Class ClusteredPutGetRemoveStrategy
java.lang.Object
com.jivesoftware.forum.database.querycache.ClusteredPutGetRemoveStrategy
- All Implemented Interfaces:
- QueryCache.PutGetRemoveStrategy
public class ClusteredPutGetRemoveStrategy
- extends java.lang.Object
- implements QueryCache.PutGetRemoveStrategy
Implements put get and remove operations for QueryCache when clustering is enabled. The underlying cache is
an instance of ClusteredCache
, which allows access to tangosol's node affinity, invocable agent, indexing, and
filtering mechanisms. These are used in combination to supported efficient bulk removal of cache entries in a distributed
environment.
Method Summary |
java.lang.Object |
get(java.lang.Object key)
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
void |
remove(int objectType,
long objectID)
|
java.lang.Object |
remove(java.lang.Object key)
|
void |
removeUsers()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusteredPutGetRemoveStrategy
public ClusteredPutGetRemoveStrategy(ClusteredCache clusteredCache)
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface QueryCache.PutGetRemoveStrategy
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put
in interface QueryCache.PutGetRemoveStrategy
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in interface QueryCache.PutGetRemoveStrategy
remove
public void remove(int objectType,
long objectID)
- Specified by:
remove
in interface QueryCache.PutGetRemoveStrategy
removeUsers
public void removeUsers()
- Specified by:
removeUsers
in interface QueryCache.PutGetRemoveStrategy
Copyright © 1999-2006 Jive Software.