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 String
getHostname()
int
getPort()
Duration
getRecordTtl()
IRedisSettings
setHostname(String hostname)
IRedisSettings
setPort(int port)
IRedisSettings
setRecordTtl(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:IRedisSettings
Sets the time to live for the records in the table- Specified by:
setRecordTtl
in interfaceIRedisSettings
- Parameters:
ttl
- The time to live for the records in the table- Returns:
- this instance, for chaining
-
getRecordTtl
public Duration getRecordTtl()
- Specified by:
getRecordTtl
in interfaceIRedisSettings
- Returns:
- the time to live for the records in the table
-
getHostname
public String getHostname()
- Specified by:
getHostname
in interfaceIRedisSettings
- Returns:
- A list of contact points (hostname:port) to contact to.
-
setHostname
public IRedisSettings setHostname(String hostname)
- Specified by:
setHostname
in interfaceIRedisSettings
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceIRedisSettings
-
setPort
public IRedisSettings setPort(int port)
- Specified by:
setPort
in interfaceIRedisSettings
-
-