public interface L1Manager
Modifier and Type | Method and Description |
---|---|
void |
addRequestor(Object key,
Address requestor)
Records a request that will be cached in another nodes L1
|
Future<Object> |
flushCache(Collection<Object> key,
Address origin,
boolean assumeOriginKeptEntryInL1) |
Future<Object> |
flushCacheWithSimpleFuture(Collection<Object> keys,
Object retval,
Address origin,
boolean assumeOriginKeptEntryInL1) |
void |
registerL1WriteSynchronizer(Object key,
L1WriteSynchronizer sync)
Registers the given write synchronizer to be notified whenever a remote value is looked up for the given key.
|
void |
unregisterL1WriteSynchronizer(Object key,
L1WriteSynchronizer sync)
Unregister the given write synchronizer if present.
|
void addRequestor(Object key, Address requestor)
Future<Object> flushCacheWithSimpleFuture(Collection<Object> keys, Object retval, Address origin, boolean assumeOriginKeptEntryInL1)
Future<Object> flushCache(Collection<Object> key, Address origin, boolean assumeOriginKeptEntryInL1)
void registerL1WriteSynchronizer(Object key, L1WriteSynchronizer sync)
unregisterL1WriteSynchronizer(Object, org.infinispan.interceptors.distribution.L1WriteSynchronizer)
key
- The key that that when looked up will trigger the synchronizersync
- The synchronizer to run the update when the key is looked upvoid unregisterL1WriteSynchronizer(Object key, L1WriteSynchronizer sync)
key
- The key to unregister the given synchronizer for.sync
- The synchronizer to be removed if it is still present.Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.