K
- the type of keysV
- the type of valuespublic class CacheLoaderClient<K,V> extends CacheClient implements javax.cache.integration.CacheLoader<K,V>
CacheLoader
that delegates requests to a CacheLoaderServer
.address, client, directServer, port
Constructor and Description |
---|
CacheLoaderClient(InetAddress address,
int port)
Constructs a
CacheLoaderClient . |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDirectCallsPossible() |
V |
load(K key) |
Map<K,V> |
loadAll(Iterable<? extends K> keys) |
close, getClient, isDirectCallable
public CacheLoaderClient(InetAddress address, int port)
CacheLoaderClient
.address
- the InetAddress
on which to connect to the CacheLoaderServer
port
- the port to which to connect to the CacheLoaderServer
protected void checkDirectCallsPossible()
checkDirectCallsPossible
in class CacheClient
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.