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 Type
    Method
    Description
     
    int
    Get the Redis server port.
    void
    setHostName(String hostName)
    Set the Redis server hostname
    void
    setPort(int port)
    Set the Redis server port.
  • Method Details

    • setHostName

      void setHostName(String hostName)
      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: