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. |
Constructor and Description |
---|
ExpiryPolicyServer(int port)
Constructs an
ExpiryPolicyServer (without a ExpiryPolicy to
which client requests will be delegated). |
ExpiryPolicyServer(int port,
ExpiryPolicy expiryPolicy)
Constructs an ExpiryPolicyServer.
|
Modifier and Type | Method and Description |
---|---|
void |
setExpiryPolicy(ExpiryPolicy expiryPolicy)
Set the
ExpiryPolicy the ExpiryPolicyServer should use
from now on. |
addOperationHandler, close, getInetAddress, getPort, open
public 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, ExpiryPolicy expiryPolicy)
port
- the port on which to accept ExpiryPolicyClient
requestsexpiryPolicy
- (optional) the ExpiryPolicy
that will be used to handle
client requestspublic void setExpiryPolicy(ExpiryPolicy expiryPolicy)
ExpiryPolicy
the ExpiryPolicyServer
should use
from now on.expiryPolicy
- the ExpiryPolicy
Copyright © 2014. All Rights Reserved.