Interface RedisConfiguration.WithHostAndPort
- All Known Implementing Classes:
 RedisStandaloneConfiguration
- Enclosing interface:
 - RedisConfiguration
 
public static interface RedisConfiguration.WithHostAndPort
RedisConfiguration part suitable for configurations that use host/port combinations for connecting.- Since:
 - 2.1
 - Author:
 - Christoph Strobl
 
- 
Method Summary
Modifier and TypeMethodDescriptionintgetPort()Get the Redis server port.voidsetHostName(String hostName) Set the Redis server hostnamevoidsetPort(int port) Set the Redis server port. 
- 
Method Details
- 
setHostName
Set the Redis server hostname- Parameters:
 hostName- must not be null.
 - 
getHostName
String getHostName()- Returns:
 - never null.
 
 - 
setPort
void setPort(int port) Set the Redis server port.- Parameters:
 port-
 - 
getPort
int getPort()Get the Redis server port.- Returns:
 
 
 -