Example usage for Java org.springframework.data.redis.connection.lettuce LettuceConnectionFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
LettuceConnectionFactory() Constructs a new LettuceConnectionFactory instance with default settings. | |
LettuceConnectionFactory(String host, int port) Constructs a new LettuceConnectionFactory instance with default settings. | |
LettuceConnectionFactory(RedisStandaloneConfiguration standaloneConfig, LettuceClientConfiguration clientConfig) Constructs a new LettuceConnectionFactory instance using the given RedisStandaloneConfiguration and LettuceClientConfiguration . | |
LettuceConnectionFactory(RedisConfiguration redisConfiguration, LettuceClientConfiguration clientConfig) Constructs a new LettuceConnectionFactory instance using the given RedisStaticMasterReplicaConfiguration and LettuceClientConfiguration . | |
LettuceConnectionFactory(RedisSentinelConfiguration sentinelConfiguration, LettuceClientConfiguration clientConfig) Constructs a new LettuceConnectionFactory instance using the given RedisSentinelConfiguration and LettuceClientConfiguration . | |
LettuceConnectionFactory(RedisClusterConfiguration clusterConfiguration, LettuceClientConfiguration clientConfig) Constructs a new LettuceConnectionFactory instance using the given RedisClusterConfiguration and LettuceClientConfiguration . | |
LettuceConnectionFactory(RedisStandaloneConfiguration configuration) Constructs a new LettuceConnectionFactory instance with default settings. | |
LettuceConnectionFactory(LettuceClientConfiguration clientConfig) Constructs a new LettuceConnectionFactory instance given LettuceClientConfiguration . | |
LettuceConnectionFactory(RedisConfiguration redisConfiguration) Constructs a new LettuceConnectionFactory instance using the given RedisSocketConfiguration . | |
LettuceConnectionFactory(RedisSentinelConfiguration sentinelConfiguration) Constructs a new LettuceConnectionFactory instance using the given RedisSentinelConfiguration . | |
LettuceConnectionFactory(RedisClusterConfiguration clusterConfiguration) Constructs a new LettuceConnectionFactory instance using the given RedisClusterConfiguration applied to create a RedisClusterClient . | |
LettuceConnectionFactory(LettucePool pool) |
void | afterPropertiesSet() |
void | destroy() |
RedisConnection | getConnection() |
int | getDatabase() Returns the index of the database. |
String | getHostName() Returns the current host. |
String | getPassword() Returns the password used for authenticating with the Redis server. |
int | getPort() Returns the current port. |
LettuceReactiveRedisConnection | getReactiveConnection() |
RedisSentinelConfiguration | getSentinelConfiguration() |
long | getShutdownTimeout() Returns the shutdown timeout for shutting down the RedisClient (in milliseconds). |
long | getTimeout() Returns the connection timeout (in milliseconds). |
boolean | isRedisSentinelAware() |
boolean | isUseSsl() Returns whether to use SSL. |
void | setClientName(@Nullable String clientName) Sets the client name used by this connection factory. |
void | setClientResources(ClientResources clientResources) Sets the ClientResources to reuse the client infrastructure. |
void | setDatabase(int index) Sets the index of the database used by this connection factory. |
void | setHostName(String hostName) Sets the hostname. |
void | setPassword(String password) Sets the password used for authenticating with the Redis server. |
void | setPort(int port) Sets the port. |
void | setShareNativeConnection(boolean shareNativeConnection) Enables multiple LettuceConnection s to share a single native connection. |
void | setShutdownTimeout(long shutdownTimeout) Sets the shutdown timeout for shutting down the RedisClient (in milliseconds). |
void | setValidateConnection(boolean validateConnection) Enables validation of the shared native Lettuce connection on calls to #getConnection() . |