K - the type of keysV - the type of valuespublic class CacheLoaderServer<K,V> extends Server
Server that handles CacheLoader requests from a
CacheLoaderClient and delegates them to an underlying CacheLoader.| Modifier and Type | Class and Description |
|---|---|
class |
CacheLoaderServer.LoadAllOperationHandler
The
OperationHandler for a CacheLoader.loadAll(Iterable)} operation. |
class |
CacheLoaderServer.LoadOperationHandler
The
OperationHandler for a CacheLoader.load(Object) operation. |
CLOSE_OPERATION, LOG| Constructor and Description |
|---|
CacheLoaderServer(int port)
Constructs an
CacheLoaderServer (without a CacheLoader to
which client requests will be delegated). |
CacheLoaderServer(int port,
javax.cache.integration.CacheLoader<K,V> cacheLoader)
Constructs an CacheLoaderServer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setCacheLoader(javax.cache.integration.CacheLoader<K,V> cacheLoader)
Set the
CacheLoader the CacheLoaderServer should use
from now on. |
addOperationHandler, close, getInetAddress, getPort, openpublic CacheLoaderServer(int port)
CacheLoaderServer (without a CacheLoader to
which client requests will be delegated).port - the port on which to accept CacheLoaderClient requestspublic CacheLoaderServer(int port,
javax.cache.integration.CacheLoader<K,V> cacheLoader)
port - the port on which to accept CacheLoaderClient requestscacheLoader - (optional) the CacheLoader that will be used to handle
client requestspublic void setCacheLoader(javax.cache.integration.CacheLoader<K,V> cacheLoader)
CacheLoader the CacheLoaderServer should use
from now on.cacheLoader - the CacheLoaderCopyright © 2019. All rights reserved.