public class L1ManagerImpl extends Object implements L1Manager, RemoteValueRetrievedListener
| Constructor and Description |
|---|
L1ManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestor(Object key,
Address origin)
Records a request that will be cached in another nodes L1
|
CompletableFuture<?> |
flushCache(Collection<Object> keys,
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 |
remoteValueFound(InternalCacheEntry ice)
Invoked when a remote value is found from a remote source
|
void |
remoteValueNotFound(Object key)
Invoked when a remote value is not found from the remote source for the given key
|
void |
start() |
void |
stop() |
void |
unregisterL1WriteSynchronizer(Object key,
L1WriteSynchronizer sync)
Unregister the given write synchronizer if present.
|
public void start()
public void stop()
public void addRequestor(Object key, Address origin)
L1ManageraddRequestor in interface L1Managerpublic CompletableFuture<?> flushCache(Collection<Object> keys, Address origin, boolean assumeOriginKeptEntryInL1)
flushCache in interface L1Managerpublic void registerL1WriteSynchronizer(Object key, L1WriteSynchronizer sync)
L1ManagerL1Manager.unregisterL1WriteSynchronizer(Object, org.infinispan.interceptors.distribution.L1WriteSynchronizer)registerL1WriteSynchronizer in interface L1Managerkey - The key that that when looked up will trigger the synchronizersync - The synchronizer to run the update when the key is looked uppublic void unregisterL1WriteSynchronizer(Object key, L1WriteSynchronizer sync)
L1ManagerunregisterL1WriteSynchronizer in interface L1Managerkey - The key to unregister the given synchronizer for.sync - The synchronizer to be removed if it is still present.public void remoteValueFound(InternalCacheEntry ice)
RemoteValueRetrievedListenerremoteValueFound in interface RemoteValueRetrievedListenerice - The cache entry that was foundpublic void remoteValueNotFound(Object key)
RemoteValueRetrievedListenerremoteValueNotFound in interface RemoteValueRetrievedListenerkey - The key for which there was no value foundCopyright © 2021 JBoss by Red Hat. All rights reserved.