public class ExpiryPolicyServer extends Server
| Modifier and Type | Class and Description |
|---|---|
static class |
ExpiryPolicyServer.EntryOperation
The type of operation that was performed on a Cache.Entry
|
class |
ExpiryPolicyServer.GetExpiryOperationHandler
The
OperationHandler for a ExpiryPolicy operation. |
CLOSE_OPERATION, LOG| Constructor and Description |
|---|
ExpiryPolicyServer(int port)
Constructs an
ExpiryPolicyServer (without a ExpiryPolicy to
which client requests will be delegated). |
ExpiryPolicyServer(int port,
javax.cache.expiry.ExpiryPolicy expiryPolicy)
Constructs an ExpiryPolicyServer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setExpiryPolicy(javax.cache.expiry.ExpiryPolicy expiryPolicy)
Set the
ExpiryPolicy the ExpiryPolicyServer should use
from now on. |
addOperationHandler, close, getInetAddress, getPort, openpublic ExpiryPolicyServer(int port)
ExpiryPolicyServer (without a ExpiryPolicy to
which client requests will be delegated).port - the port on which to accept ExpiryPolicyClient requestspublic ExpiryPolicyServer(int port,
javax.cache.expiry.ExpiryPolicy expiryPolicy)
port - the port on which to accept ExpiryPolicyClient requestsexpiryPolicy - (optional) the ExpiryPolicy that will be used to handle
client requestspublic void setExpiryPolicy(javax.cache.expiry.ExpiryPolicy expiryPolicy)
ExpiryPolicy the ExpiryPolicyServer should use
from now on.expiryPolicy - the ExpiryPolicyCopyright © 2019. All rights reserved.