Skip to content

Commit 8313bfb

Browse files
committed
Remove XNackParams and related methods because params are internal
1 parent 24b9551 commit 8313bfb

14 files changed

Lines changed: 0 additions & 325 deletions

src/main/java/io/lettuce/core/AbstractRedisAsyncCommands.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3119,11 +3119,6 @@ public RedisFuture<Long> xnack(K key, K group, XNackMode mode, String... message
31193119
return dispatch(commandBuilder.xnack(key, group, mode, messageIds));
31203120
}
31213121

3122-
@Override
3123-
public RedisFuture<Long> xnack(K key, K group, XNackMode mode, XNackArgs args, String... messageIds) {
3124-
return dispatch(commandBuilder.xnack(key, group, mode, args, messageIds));
3125-
}
3126-
31273122
@Override
31283123
public RedisFuture<String> xadd(K key, Map<K, V> body) {
31293124
return dispatch(commandBuilder.xadd(key, null, body));

src/main/java/io/lettuce/core/AbstractRedisReactiveCommands.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3181,11 +3181,6 @@ public Mono<Long> xnack(K key, K group, XNackMode mode, String... messageIds) {
31813181
return createMono(() -> commandBuilder.xnack(key, group, mode, messageIds));
31823182
}
31833183

3184-
@Override
3185-
public Mono<Long> xnack(K key, K group, XNackMode mode, XNackArgs args, String... messageIds) {
3186-
return createMono(() -> commandBuilder.xnack(key, group, mode, args, messageIds));
3187-
}
3188-
31893184
@Override
31903185
public Mono<String> xadd(K key, Map<K, V> body) {
31913186
return createMono(() -> commandBuilder.xadd(key, null, body));

src/main/java/io/lettuce/core/RedisCommandBuilder.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,10 +3270,6 @@ public Command<K, V, List<StreamEntryDeletionResult>> xackdel(K key, K group, St
32703270
}
32713271

32723272
public Command<K, V, Long> xnack(K key, K group, XNackMode mode, String[] messageIds) {
3273-
return xnack(key, group, mode, null, messageIds);
3274-
}
3275-
3276-
public Command<K, V, Long> xnack(K key, K group, XNackMode mode, XNackArgs xNackArgs, String[] messageIds) {
32773273
notNullKey(key);
32783274
LettuceAssert.notNull(group, "Group " + MUST_NOT_BE_NULL);
32793275
LettuceAssert.notNull(mode, "XNackMode " + MUST_NOT_BE_NULL);
@@ -3288,10 +3284,6 @@ public Command<K, V, Long> xnack(K key, K group, XNackMode mode, XNackArgs xNack
32883284
args.add(messageId);
32893285
}
32903286

3291-
if (xNackArgs != null) {
3292-
xNackArgs.build(args);
3293-
}
3294-
32953287
return createCommand(XNACK, new IntegerOutput<>(codec), args);
32963288
}
32973289

src/main/java/io/lettuce/core/XNackArgs.java

Lines changed: 0 additions & 116 deletions
This file was deleted.

src/main/java/io/lettuce/core/api/async/RedisStreamAsyncCommands.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,6 @@ public interface RedisStreamAsyncCommands<K, V> {
9090
*/
9191
RedisFuture<Long> xnack(K key, K group, XNackMode mode, String... messageIds);
9292

93-
/**
94-
* Negatively acknowledge one or more pending messages in a consumer group with additional options. Depending on the
95-
* {@link XNackMode}, the delivery counter is adjusted to reflect the reason for the NACK.
96-
*
97-
* @param key the stream key.
98-
* @param group name of the consumer group.
99-
* @param mode the nacking mode.
100-
* @param args additional {@link XNackArgs}, must not be {@code null}.
101-
* @param messageIds message Id's to negatively acknowledge.
102-
* @return the number of messages successfully NACKed.
103-
* @since 7.6
104-
*/
105-
RedisFuture<Long> xnack(K key, K group, XNackMode mode, XNackArgs args, String... messageIds);
106-
10793
/**
10894
* Append a message to the stream {@code key}.
10995
*

src/main/java/io/lettuce/core/api/reactive/RedisStreamReactiveCommands.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,6 @@ public interface RedisStreamReactiveCommands<K, V> {
9191
*/
9292
Mono<Long> xnack(K key, K group, XNackMode mode, String... messageIds);
9393

94-
/**
95-
* Negatively acknowledge one or more pending messages in a consumer group with additional options. Depending on the
96-
* {@link XNackMode}, the delivery counter is adjusted to reflect the reason for the NACK.
97-
*
98-
* @param key the stream key.
99-
* @param group name of the consumer group.
100-
* @param mode the nacking mode.
101-
* @param args additional {@link XNackArgs}, must not be {@code null}.
102-
* @param messageIds message Id's to negatively acknowledge.
103-
* @return the number of messages successfully NACKed.
104-
* @since 7.6
105-
*/
106-
Mono<Long> xnack(K key, K group, XNackMode mode, XNackArgs args, String... messageIds);
107-
10894
/**
10995
* Append a message to the stream {@code key}.
11096
*

src/main/java/io/lettuce/core/api/sync/RedisStreamCommands.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,6 @@ public interface RedisStreamCommands<K, V> {
9090
*/
9191
Long xnack(K key, K group, XNackMode mode, String... messageIds);
9292

93-
/**
94-
* Negatively acknowledge one or more pending messages in a consumer group with additional options. Depending on the
95-
* {@link XNackMode}, the delivery counter is adjusted to reflect the reason for the NACK.
96-
*
97-
* @param key the stream key.
98-
* @param group name of the consumer group.
99-
* @param mode the nacking mode.
100-
* @param args additional {@link XNackArgs}, must not be {@code null}.
101-
* @param messageIds message Id's to negatively acknowledge.
102-
* @return the number of messages successfully NACKed.
103-
* @since 7.6
104-
*/
105-
Long xnack(K key, K group, XNackMode mode, XNackArgs args, String... messageIds);
106-
10793
/**
10894
* Append a message to the stream {@code key}.
10995
*

src/main/java/io/lettuce/core/cluster/api/async/NodeSelectionStreamAsyncCommands.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,6 @@ public interface NodeSelectionStreamAsyncCommands<K, V> {
9090
*/
9191
AsyncExecutions<Long> xnack(K key, K group, XNackMode mode, String... messageIds);
9292

93-
/**
94-
* Negatively acknowledge one or more pending messages in a consumer group with additional options. Depending on the
95-
* {@link XNackMode}, the delivery counter is adjusted to reflect the reason for the NACK.
96-
*
97-
* @param key the stream key.
98-
* @param group name of the consumer group.
99-
* @param mode the nacking mode.
100-
* @param args additional {@link XNackArgs}, must not be {@code null}.
101-
* @param messageIds message Id's to negatively acknowledge.
102-
* @return the number of messages successfully NACKed.
103-
* @since 7.6
104-
*/
105-
AsyncExecutions<Long> xnack(K key, K group, XNackMode mode, XNackArgs args, String... messageIds);
106-
10793
/**
10894
* Append a message to the stream {@code key}.
10995
*

src/main/java/io/lettuce/core/cluster/api/sync/NodeSelectionStreamCommands.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,6 @@ public interface NodeSelectionStreamCommands<K, V> {
9090
*/
9191
Executions<Long> xnack(K key, K group, XNackMode mode, String... messageIds);
9292

93-
/**
94-
* Negatively acknowledge one or more pending messages in a consumer group with additional options. Depending on the
95-
* {@link XNackMode}, the delivery counter is adjusted to reflect the reason for the NACK.
96-
*
97-
* @param key the stream key.
98-
* @param group name of the consumer group.
99-
* @param mode the nacking mode.
100-
* @param args additional {@link XNackArgs}, must not be {@code null}.
101-
* @param messageIds message Id's to negatively acknowledge.
102-
* @return the number of messages successfully NACKed.
103-
* @since 7.6
104-
*/
105-
Executions<Long> xnack(K key, K group, XNackMode mode, XNackArgs args, String... messageIds);
106-
10793
/**
10894
* Append a message to the stream {@code key}.
10995
*

src/main/kotlin/io/lettuce/core/api/coroutines/RedisStreamCoroutinesCommands.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,6 @@ interface RedisStreamCoroutinesCommands<K : Any, V : Any> {
6363
*/
6464
suspend fun xnack(key: K, group: K, mode: XNackMode, vararg messageIds: String): Long?
6565

66-
/**
67-
* Negatively acknowledge one or more pending messages in a consumer group with additional options. Depending on the
68-
* [XNackMode], the delivery counter is adjusted to reflect the reason for the NACK.
69-
*
70-
* @param key the stream key.
71-
* @param group name of the consumer group.
72-
* @param mode the nacking mode.
73-
* @param args additional [XNackArgs], must not be `null`.
74-
* @param messageIds message Id's to negatively acknowledge.
75-
* @return the number of messages successfully NACKed.
76-
* @since 7.6
77-
*/
78-
suspend fun xnack(key: K, group: K, mode: XNackMode, args: XNackArgs, vararg messageIds: String): Long?
79-
8066
/**
8167
* Append a message to the stream `key`.
8268
*

0 commit comments

Comments
 (0)