Package org.apache.pulsar.io.redis
Class RedisSession
- java.lang.Object
-
- org.apache.pulsar.io.redis.RedisSession
-
public class RedisSession extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RedisSession(io.lettuce.core.AbstractRedisClient client, io.lettuce.core.api.StatefulConnection connection, io.lettuce.core.cluster.api.async.RedisClusterAsyncCommands<byte[],byte[]> asyncCommands)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.lettuce.core.cluster.api.async.RedisClusterAsyncCommands<byte[],byte[]>asyncCommands()io.lettuce.core.AbstractRedisClientclient()voidclose()io.lettuce.core.api.StatefulConnectionconnection()static RedisSessioncreate(RedisSinkConfig config)
-
-
-
Method Detail
-
client
public io.lettuce.core.AbstractRedisClient client()
-
connection
public io.lettuce.core.api.StatefulConnection connection()
-
asyncCommands
public io.lettuce.core.cluster.api.async.RedisClusterAsyncCommands<byte[],byte[]> asyncCommands()
-
close
public void close() throws java.lang.Exception- Throws:
java.lang.Exception
-
create
public static RedisSession create(RedisSinkConfig config)
-
-