Java org.springframework.data.redis.connection.lettuce LettuceConnectionFactory fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.data.redis.connection.lettuce LettuceConnectionFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.data.redis.connection.lettuce LettuceConnectionFactory.

The text is from its open source code.

Constructor

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)

Method

voidafterPropertiesSet()
voiddestroy()
RedisConnectiongetConnection()
intgetDatabase()
Returns the index of the database.
StringgetHostName()
Returns the current host.
StringgetPassword()
Returns the password used for authenticating with the Redis server.
intgetPort()
Returns the current port.
LettuceReactiveRedisConnectiongetReactiveConnection()
RedisSentinelConfigurationgetSentinelConfiguration()
longgetShutdownTimeout()
Returns the shutdown timeout for shutting down the RedisClient (in milliseconds).
longgetTimeout()
Returns the connection timeout (in milliseconds).
booleanisRedisSentinelAware()
booleanisUseSsl()
Returns whether to use SSL.
voidsetClientName(@Nullable String clientName)
Sets the client name used by this connection factory.
voidsetClientResources(ClientResources clientResources)
Sets the ClientResources to reuse the client infrastructure.
voidsetDatabase(int index)
Sets the index of the database used by this connection factory.
voidsetHostName(String hostName)
Sets the hostname.
voidsetPassword(String password)
Sets the password used for authenticating with the Redis server.
voidsetPort(int port)
Sets the port.
voidsetShareNativeConnection(boolean shareNativeConnection)
Enables multiple LettuceConnection s to share a single native connection.
voidsetShutdownTimeout(long shutdownTimeout)
Sets the shutdown timeout for shutting down the RedisClient (in milliseconds).
voidsetValidateConnection(boolean validateConnection)
Enables validation of the shared native Lettuce connection on calls to #getConnection() .