Package org.wicketstuff.datastores.redis
Class RedisSettings
- java.lang.Object
-
- org.wicketstuff.datastores.redis.RedisSettings
-
- All Implemented Interfaces:
IRedisSettings
public class RedisSettings extends Object implements IRedisSettings
- See Also:
IRedisSettings
-
-
Constructor Summary
Constructors Constructor Description RedisSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHostname()intgetPort()DurationgetRecordTtl()IRedisSettingssetHostname(String hostname)IRedisSettingssetPort(int port)IRedisSettingssetRecordTtl(Duration ttl)Sets the time to live for the records in the table
-
-
-
Method Detail
-
setRecordTtl
public IRedisSettings setRecordTtl(Duration ttl)
Description copied from interface:IRedisSettingsSets the time to live for the records in the table- Specified by:
setRecordTtlin interfaceIRedisSettings- Parameters:
ttl- The time to live for the records in the table- Returns:
- this instance, for chaining
-
getRecordTtl
public Duration getRecordTtl()
- Specified by:
getRecordTtlin interfaceIRedisSettings- Returns:
- the time to live for the records in the table
-
getHostname
public String getHostname()
- Specified by:
getHostnamein interfaceIRedisSettings- Returns:
- A list of contact points (hostname:port) to contact to.
-
setHostname
public IRedisSettings setHostname(String hostname)
- Specified by:
setHostnamein interfaceIRedisSettings
-
getPort
public int getPort()
- Specified by:
getPortin interfaceIRedisSettings
-
setPort
public IRedisSettings setPort(int port)
- Specified by:
setPortin interfaceIRedisSettings
-
-