|
9 | 9 | import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
|
10 | 10 | import org.json.JSONArray;
|
11 | 11 |
|
| 12 | +import redis.clients.jedis.annots.Experimental; |
12 | 13 | import redis.clients.jedis.args.*;
|
13 | 14 | import redis.clients.jedis.bloom.*;
|
14 | 15 | import redis.clients.jedis.commands.JedisCommands;
|
@@ -192,6 +193,7 @@ public UnifiedJedis(ConnectionProvider provider, int maxAttempts, Duration maxTo
|
192 | 193 | * by using simple configuration which is passed through from Resilience4j - https://resilience4j.readme.io/docs
|
193 | 194 | * <p>
|
194 | 195 | */
|
| 196 | + @Experimental |
195 | 197 | public UnifiedJedis(MultiClusterPooledConnectionProvider provider) {
|
196 | 198 | this(new CircuitBreakerCommandExecutor(provider), provider);
|
197 | 199 | }
|
@@ -457,7 +459,7 @@ public long pexpireAt(byte[] key, long millisecondsTimestamp) {
|
457 | 459 |
|
458 | 460 | @Override
|
459 | 461 | public long pexpireAt(byte[] key, long millisecondsTimestamp, ExpiryOption expiryOption) {
|
460 |
| - return executeCommand(commandObjects.expireAt(key, millisecondsTimestamp, expiryOption)); |
| 462 | + return executeCommand(commandObjects.pexpireAt(key, millisecondsTimestamp, expiryOption)); |
461 | 463 | }
|
462 | 464 |
|
463 | 465 | @Override
|
@@ -3064,12 +3066,23 @@ public List<Map.Entry<String, List<StreamEntry>>> xread(XReadParams xReadParams,
|
3064 | 3066 | return executeCommand(commandObjects.xread(xReadParams, streams));
|
3065 | 3067 | }
|
3066 | 3068 |
|
| 3069 | + @Override |
| 3070 | + public Map<String, List<StreamEntry>> xreadAsMap(XReadParams xReadParams, Map<String, StreamEntryID> streams) { |
| 3071 | + return executeCommand(commandObjects.xreadAsMap(xReadParams, streams)); |
| 3072 | + } |
| 3073 | + |
3067 | 3074 | @Override
|
3068 | 3075 | public List<Map.Entry<String, List<StreamEntry>>> xreadGroup(String groupName, String consumer,
|
3069 | 3076 | XReadGroupParams xReadGroupParams, Map<String, StreamEntryID> streams) {
|
3070 | 3077 | return executeCommand(commandObjects.xreadGroup(groupName, consumer, xReadGroupParams, streams));
|
3071 | 3078 | }
|
3072 | 3079 |
|
| 3080 | + @Override |
| 3081 | + public Map<String, List<StreamEntry>> xreadGroupAsMap(String groupName, String consumer, |
| 3082 | + XReadGroupParams xReadGroupParams, Map<String, StreamEntryID> streams) { |
| 3083 | + return executeCommand(commandObjects.xreadGroupAsMap(groupName, consumer, xReadGroupParams, streams)); |
| 3084 | + } |
| 3085 | + |
3073 | 3086 | @Override
|
3074 | 3087 | public byte[] xadd(byte[] key, XAddParams params, Map<byte[], byte[]> hash) {
|
3075 | 3088 | return executeCommand(commandObjects.xadd(key, params, hash));
|
|
0 commit comments