public class ExpiryPolicyClient extends CacheClient implements javax.cache.expiry.ExpiryPolicy
address, client, directServer, port
Constructor and Description |
---|
ExpiryPolicyClient(InetAddress address,
int port)
Constructs a
ExpiryPolicyClient . |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDirectCallsPossible() |
javax.cache.expiry.Duration |
getExpiryForAccess() |
javax.cache.expiry.Duration |
getExpiryForCreation() |
javax.cache.expiry.Duration |
getExpiryForUpdate() |
close, getClient, isDirectCallable
public ExpiryPolicyClient(InetAddress address, int port)
ExpiryPolicyClient
.address
- the InetAddress
on which to connect to the ExpiryPolicyServer
port
- the port to which to connect to the ExpiryPolicyServer
protected void checkDirectCallsPossible()
checkDirectCallsPossible
in class CacheClient
public javax.cache.expiry.Duration getExpiryForCreation()
getExpiryForCreation
in interface javax.cache.expiry.ExpiryPolicy
public javax.cache.expiry.Duration getExpiryForAccess()
getExpiryForAccess
in interface javax.cache.expiry.ExpiryPolicy
public javax.cache.expiry.Duration getExpiryForUpdate()
getExpiryForUpdate
in interface javax.cache.expiry.ExpiryPolicy
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.