-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reactive commands implementation and additional tests
- Loading branch information
Showing
25 changed files
with
330 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/io/lettuce/core/cluster/pubsub/RedisClusterShardedPubSubListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.lettuce.core.cluster.pubsub; | ||
|
||
import io.lettuce.core.cluster.models.partitions.RedisClusterNode; | ||
|
||
/** | ||
* Interface for Redis Cluster Pub/Sub listeners. | ||
* | ||
* @param <K> Key type. | ||
* @param <V> Value type. | ||
* @author Ali Takavci | ||
* @since 4.4 | ||
*/ | ||
public interface RedisClusterShardedPubSubListener<K, V> extends RedisClusterPubSubListener<K, V>{ | ||
|
||
/** | ||
* Subscribed to a shard channel. | ||
* | ||
* @param node the {@link RedisClusterNode} from which the {@code message} originates. | ||
* @param shardChannel Shard channel | ||
* @param count Subscription count. | ||
*/ | ||
void ssubscribed(RedisClusterNode node, K shardChannel, long count); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/io/lettuce/core/pubsub/RedisShardedPubSubListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.lettuce.core.pubsub; | ||
|
||
/** | ||
* Interface for Redis Pub/Sub listeners. | ||
* | ||
* @param <K> Key type. | ||
* @param <V> Value type. | ||
* @author Ali Takavci | ||
*/ | ||
public interface RedisShardedPubSubListener<K, V> extends RedisPubSubListener<K, V>{ | ||
|
||
/** | ||
* Subscribed to a Shard channel. | ||
* | ||
* @param shardChannel Shard channel | ||
* @param count Subscription count. | ||
*/ | ||
void ssubscribed(K chashardChannelnnel, long count); | ||
|
||
} |
Oops, something went wrong.