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 IMemcachedSettingspublic IMemcachedSettings setServerNames(String serverNames)
IMemcachedSettingssetServerNames in interface IMemcachedSettingsserverNames - comma separated list of the hostnames
where Memcached servers runpublic int getPort()
getPort in interface IMemcachedSettingspublic IMemcachedSettings setPort(int port)
IMemcachedSettingssetPort in interface IMemcachedSettingsport - the port where Memcached server listens topublic int getExpirationTime()
getExpirationTime in interface IMemcachedSettingspublic IMemcachedSettings setExpirationTime(int expirationTime)
IMemcachedSettingssetExpirationTime in interface IMemcachedSettingsexpirationTime - the duration after which the record will be
evicted by Memcachedpublic org.apache.wicket.util.time.Duration getShutdownTimeout()
getShutdownTimeout in interface IMemcachedSettingspublic IMemcachedSettings setShutdownTimeout(org.apache.wicket.util.time.Duration timeout)
IMemcachedSettingssetShutdownTimeout in interface IMemcachedSettingstimeout - the time to wait when shutting down the connection to
the Memcached serverCopyright © 2015. All rights reserved.