Interface RedisConnectionDetails.Standalone
- Enclosing interface:
- RedisConnectionDetails
public static interface RedisConnectionDetails.Standalone
Redis standalone configuration.
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
Database index used by the connection factory.getHost()
Redis server host.int
getPort()
Redis server port.default SslBundle
SSL bundle to use.Creates a new instance with the given host and port.Creates a new instance with the given host, port and database.Creates a new instance with the given host, port, database and SSL bundle.Creates a new instance with the given host, port and SSL bundle.
-
Method Details
-
getHost
String getHost()Redis server host.- Returns:
- the redis server host
-
getPort
int getPort()Redis server port.- Returns:
- the redis server port
-
getDatabase
default int getDatabase()Database index used by the connection factory.- Returns:
- the database index used by the connection factory
-
getSslBundle
SSL bundle to use.- Returns:
- the SSL bundle to use
- Since:
- 3.5.0
-
of
Creates a new instance with the given host and port.- Parameters:
host
- the hostport
- the port- Returns:
- the new instance
-
of
Creates a new instance with the given host, port and SSL bundle.- Parameters:
host
- the hostport
- the portsslBundle
- the SSL bundle- Returns:
- the new instance
- Since:
- 3.5.0
-
of
Creates a new instance with the given host, port and database.- Parameters:
host
- the hostport
- the portdatabase
- the database- Returns:
- the new instance
-
of
static RedisConnectionDetails.Standalone of(String host, int port, int database, SslBundle sslBundle) Creates a new instance with the given host, port, database and SSL bundle.- Parameters:
host
- the hostport
- the portdatabase
- the databasesslBundle
- the SSL bundle- Returns:
- the new instance
- Since:
- 3.5.0
-