public class CacheClient extends Object implements Closeable, Serializable
Modifier and Type | Field and Description |
---|---|
protected InetAddress |
address
The
InetAddress on which to connect to the CacheLoaderServer . |
protected Client |
client
The
Client connection to the CacheLoaderServer . |
protected Server |
directServer |
protected int |
port
The port on which to connect to the
CacheLoaderServer . |
Modifier | Constructor and Description |
---|---|
protected |
CacheClient(InetAddress address,
int port) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDirectCallsPossible() |
void |
close() |
protected Client |
getClient()
Obtains the internal
Client used to communicate with the
CacheLoaderServer . |
protected boolean |
isDirectCallable() |
protected InetAddress address
InetAddress
on which to connect to the CacheLoaderServer
.protected int port
CacheLoaderServer
.protected transient Client client
Client
connection to the CacheLoaderServer
.protected transient Server directServer
protected CacheClient(InetAddress address, int port)
protected Client getClient()
Client
used to communicate with the
CacheLoaderServer
. If the Client
is not connected, a
connection will be attempted.Client
protected boolean isDirectCallable()
protected void checkDirectCallsPossible()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.