Package org.apache.beam.sdk.io.redis
Class RedisConnectionConfiguration
java.lang.Object
org.apache.beam.sdk.io.redis.RedisConnectionConfiguration
- All Implemented Interfaces:
- Serializable
RedisConnectionConfiguration describes and wraps a connectionConfiguration to Redis
 server or cluster.- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionredis.clients.jedis.Jedisconnect()Connect to the Redis instance.static RedisConnectionConfigurationcreate()static RedisConnectionConfigurationstatic RedisConnectionConfigurationcreate(ValueProvider<String> host, ValueProvider<Integer> port) Enable SSL connection to Redis server.voidpopulateDisplayData(DisplayData.Builder builder) Populate the display data with connectionConfiguration details.Define the password to authenticate on the Redis server.withAuth(ValueProvider<String> auth) SeewithAuth(String).Define the host name of the Redis server.withHost(ValueProvider<String> host) SeewithHost(String).withPort(int port) Define the port number of the Redis server.withPort(ValueProvider<Integer> port) SeewithPort(int).withSSL(ValueProvider<Boolean> ssl) Define if a SSL connection to Redis server should be used.withTimeout(int timeout) Define the Redis connection timeout.withTimeout(ValueProvider<Integer> timeout) SeewithTimeout(int).
- 
Constructor Details- 
RedisConnectionConfigurationpublic RedisConnectionConfiguration()
 
- 
- 
Method Details- 
create
- 
create
- 
createpublic static RedisConnectionConfiguration create(ValueProvider<String> host, ValueProvider<Integer> port) 
- 
withHostDefine the host name of the Redis server.
- 
withHostSeewithHost(String).
- 
withPortDefine the port number of the Redis server.
- 
withPortSeewithPort(int).
- 
withAuthDefine the password to authenticate on the Redis server.
- 
withAuthSeewithAuth(String).
- 
withTimeoutDefine the Redis connection timeout. A timeout of zero is interpreted as an infinite timeout.
- 
withTimeoutSeewithTimeout(int).
- 
enableSSLEnable SSL connection to Redis server.
- 
withSSLDefine if a SSL connection to Redis server should be used.
- 
connectpublic redis.clients.jedis.Jedis connect()Connect to the Redis instance.
- 
populateDisplayDataPopulate the display data with connectionConfiguration details.
 
-