Class RedisAbstract
java.lang.Object
dev.unnm3d.redischat.datamanagers.redistools.RedisAbstract
- Direct Known Subclasses:
RedisDataManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
executeTransaction
(Consumer<io.lettuce.core.api.sync.RedisCommands<String, String>> redisCommandsConsumer) <T> CompletionStage
<T> getConnectionAsync
(Function<io.lettuce.core.api.async.RedisAsyncCommands<String, String>, CompletionStage<T>> redisCallBack) <T> CompletionStage
<T> getConnectionPipeline
(Function<io.lettuce.core.api.async.RedisAsyncCommands<String, String>, CompletionStage<T>> redisCallBack) abstract void
receiveMessage
(String channel, String message) protected void
registerSub
(String... listenedChannels)
-
Field Details
-
lettuceRedisClient
protected io.lettuce.core.RedisClient lettuceRedisClient
-
-
Constructor Details
-
RedisAbstract
public RedisAbstract(io.lettuce.core.RedisClient lettuceRedisClient, int poolSize)
-
-
Method Details
-
receiveMessage
-
registerSub
-
getConnectionAsync
public <T> CompletionStage<T> getConnectionAsync(Function<io.lettuce.core.api.async.RedisAsyncCommands<String, String>, CompletionStage<T>> redisCallBack) -
getConnectionPipeline
public <T> CompletionStage<T> getConnectionPipeline(Function<io.lettuce.core.api.async.RedisAsyncCommands<String, String>, CompletionStage<T>> redisCallBack) -
executeTransaction
-
close
public void close()
-