public class MemcachedSettings extends Object implements IMemcachedSettings
Constructor and Description |
---|
MemcachedSettings()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getExpirationTime() |
int |
getPort() |
List<String> |
getServerList() |
org.apache.wicket.util.time.Duration |
getShutdownTimeout() |
IMemcachedSettings |
setExpirationTime(int expirationTime)
Sets the duration after which a record will be evicted by Memcached.
|
IMemcachedSettings |
setPort(int port)
Sets the port where Memcached server listens to
|
IMemcachedSettings |
setServerNames(String serverNames)
Parses the hostnames of the Memcached servers
|
IMemcachedSettings |
setShutdownTimeout(org.apache.wicket.util.time.Duration timeout)
Sets the time to wait when shutting down the connection to
the Memcached server.
|
public MemcachedSettings()
public List<String> getServerList()
getServerList
in interface IMemcachedSettings
public IMemcachedSettings setServerNames(String serverNames)
IMemcachedSettings
setServerNames
in interface IMemcachedSettings
serverNames
- comma separated list of the hostnames
where Memcached servers runpublic int getPort()
getPort
in interface IMemcachedSettings
public IMemcachedSettings setPort(int port)
IMemcachedSettings
setPort
in interface IMemcachedSettings
port
- the port where Memcached server listens topublic int getExpirationTime()
getExpirationTime
in interface IMemcachedSettings
public IMemcachedSettings setExpirationTime(int expirationTime)
IMemcachedSettings
setExpirationTime
in interface IMemcachedSettings
expirationTime
- the duration after which the record will be
evicted by Memcachedpublic org.apache.wicket.util.time.Duration getShutdownTimeout()
getShutdownTimeout
in interface IMemcachedSettings
public IMemcachedSettings setShutdownTimeout(org.apache.wicket.util.time.Duration timeout)
IMemcachedSettings
setShutdownTimeout
in interface IMemcachedSettings
timeout
- the time to wait when shutting down the connection to
the Memcached serverCopyright © 2015. All rights reserved.