Skip to content

Commit d0ffa50

Browse files
committed
Missed several crucial files
1 parent 085e792 commit d0ffa50

21 files changed

+140
-154
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import io.lettuce.core.output.KeyValueStreamingChannel;
3535
import io.lettuce.core.output.ScoredValueStreamingChannel;
3636
import io.lettuce.core.output.ValueStreamingChannel;
37-
import io.lettuce.core.output.data.DynamicAggregateData;
3837
import io.lettuce.core.protocol.AsyncCommand;
3938
import io.lettuce.core.protocol.Command;
4039
import io.lettuce.core.protocol.CommandArgs;
@@ -391,7 +390,7 @@ public RedisFuture<String> clientTracking(TrackingArgs args) {
391390
}
392391

393392
@Override
394-
public RedisFuture<DynamicAggregateData> clientTrackinginfo() {
393+
public RedisFuture<TrackingInfo> clientTrackinginfo() {
395394
return dispatch(commandBuilder.clientTrackinginfo());
396395
}
397396

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import io.lettuce.core.output.KeyValueStreamingChannel;
3535
import io.lettuce.core.output.ScoredValueStreamingChannel;
3636
import io.lettuce.core.output.ValueStreamingChannel;
37-
import io.lettuce.core.output.data.DynamicAggregateData;
3837
import io.lettuce.core.protocol.Command;
3938
import io.lettuce.core.protocol.CommandArgs;
4039
import io.lettuce.core.protocol.CommandType;
@@ -409,7 +408,7 @@ public Mono<String> clientTracking(TrackingArgs args) {
409408
}
410409

411410
@Override
412-
public Mono<DynamicAggregateData> clientTrackinginfo() {
411+
public Mono<TrackingInfo> clientTrackinginfo() {
413412
return createMono(commandBuilder::clientTrackinginfo);
414413
}
415414

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import io.lettuce.core.models.stream.PendingMessage;
2929
import io.lettuce.core.models.stream.PendingMessages;
3030
import io.lettuce.core.output.*;
31-
import io.lettuce.core.output.data.DynamicAggregateData;
3231
import io.lettuce.core.protocol.BaseRedisCommandBuilder;
3332
import io.lettuce.core.protocol.Command;
3433
import io.lettuce.core.protocol.CommandArgs;
@@ -529,10 +528,10 @@ Command<K, V, String> clientTracking(TrackingArgs trackingArgs) {
529528
return createCommand(CLIENT, new StatusOutput<>(codec), args);
530529
}
531530

532-
Command<K, V, DynamicAggregateData> clientTrackinginfo() {
531+
Command<K, V, TrackingInfo> clientTrackinginfo() {
533532
CommandArgs<K, V> args = new CommandArgs<>(codec).add(TRACKINGINFO);
534533

535-
return new Command<>(CLIENT, new DynamicAggregateOutput<>(codec), args);
534+
return new Command<>(CLIENT, new ComplexOutput<>(codec, TrackingInfoParser.INSTANCE), args);
536535
}
537536

538537
Command<K, V, Long> clientUnblock(long id, UnblockType type) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* limitations under the License.
1919
*/
2020

21-
package io.lettuce.core.api.parsers.tracking;
21+
package io.lettuce.core;
2222

2323
import java.util.ArrayList;
2424
import java.util.Collections;

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import io.lettuce.core.ShutdownArgs;
3131
import io.lettuce.core.TrackingArgs;
3232
import io.lettuce.core.UnblockType;
33-
import io.lettuce.core.output.data.DynamicAggregateData;
33+
import io.lettuce.core.TrackingInfo;
3434
import io.lettuce.core.protocol.CommandType;
3535

3636
/**
@@ -181,12 +181,10 @@ public interface RedisServerAsyncCommands<K, V> {
181181
/**
182182
* Returns information about the current client connection's use of the server assisted client side caching feature.
183183
*
184-
* @return {@link DynamicAggregateData}, for more information check the documentation
185-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfoParser
186-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfo
187-
* @since 7.0
184+
* @return {@link TrackingInfo}, for more information check the documentation
185+
* @since 6.5
188186
*/
189-
RedisFuture<DynamicAggregateData> clientTrackinginfo();
187+
RedisFuture<TrackingInfo> clientTrackinginfo();
190188

191189
/**
192190
* Unblock the specified blocked client.

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import io.lettuce.core.ShutdownArgs;
2929
import io.lettuce.core.TrackingArgs;
3030
import io.lettuce.core.UnblockType;
31-
import io.lettuce.core.output.data.DynamicAggregateData;
31+
import io.lettuce.core.TrackingInfo;
3232
import io.lettuce.core.protocol.CommandType;
3333
import reactor.core.publisher.Flux;
3434
import reactor.core.publisher.Mono;
@@ -181,12 +181,10 @@ public interface RedisServerReactiveCommands<K, V> {
181181
/**
182182
* Returns information about the current client connection's use of the server assisted client side caching feature.
183183
*
184-
* @return {@link DynamicAggregateData}, for more information check the documentation
185-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfoParser
186-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfo
187-
* @since 7.0
184+
* @return {@link TrackingInfo}, for more information check the documentation
185+
* @since 6.5
188186
*/
189-
Mono<DynamicAggregateData> clientTrackinginfo();
187+
Mono<TrackingInfo> clientTrackinginfo();
190188

191189
/**
192190
* Unblock the specified blocked client.

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
import io.lettuce.core.KillArgs;
2929
import io.lettuce.core.ShutdownArgs;
3030
import io.lettuce.core.TrackingArgs;
31+
import io.lettuce.core.TrackingInfo;
3132
import io.lettuce.core.UnblockType;
32-
import io.lettuce.core.output.data.DynamicAggregateData;
3333
import io.lettuce.core.protocol.CommandType;
3434

3535
/**
@@ -180,12 +180,10 @@ public interface RedisServerCommands<K, V> {
180180
/**
181181
* Returns information about the current client connection's use of the server assisted client side caching feature.
182182
*
183-
* @return {@link DynamicAggregateData}, for more information check the documentation
184-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfoParser
185-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfo
186-
* @since 7.0
183+
* @return {@link TrackingInfo}, for more information check the documentation
184+
* @since 6.5
187185
*/
188-
DynamicAggregateData clientTrackinginfo();
186+
TrackingInfo clientTrackinginfo();
189187

190188
/**
191189
* Unblock the specified blocked client.

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@
1919
*/
2020
package io.lettuce.core.cluster.api.async;
2121

22-
import java.util.Date;
23-
import java.util.List;
2422
import java.util.Map;
25-
23+
import java.util.List;
24+
import java.util.Date;
2625
import io.lettuce.core.ClientListArgs;
2726
import io.lettuce.core.FlushMode;
2827
import io.lettuce.core.KillArgs;
2928
import io.lettuce.core.TrackingArgs;
3029
import io.lettuce.core.UnblockType;
31-
import io.lettuce.core.output.data.DynamicAggregateData;
30+
import io.lettuce.core.TrackingInfo;
3231
import io.lettuce.core.protocol.CommandType;
3332

3433
/**
@@ -179,12 +178,10 @@ public interface NodeSelectionServerAsyncCommands<K, V> {
179178
/**
180179
* Returns information about the current client connection's use of the server assisted client side caching feature.
181180
*
182-
* @return {@link DynamicAggregateData}, for more information check the documentation
183-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfoParser
184-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfo
185-
* @since 7.0
181+
* @return {@link TrackingInfo}, for more information check the documentation
182+
* @since 6.5
186183
*/
187-
AsyncExecutions<DynamicAggregateData> clientTrackinginfo();
184+
AsyncExecutions<TrackingInfo> clientTrackinginfo();
188185

189186
/**
190187
* Unblock the specified blocked client.

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import io.lettuce.core.KillArgs;
2929
import io.lettuce.core.TrackingArgs;
3030
import io.lettuce.core.UnblockType;
31-
import io.lettuce.core.output.data.DynamicAggregateData;
31+
import io.lettuce.core.TrackingInfo;
3232
import io.lettuce.core.protocol.CommandType;
3333

3434
/**
@@ -164,7 +164,7 @@ public interface NodeSelectionServerCommands<K, V> {
164164
* @return simple-string-reply {@code OK} if the connection name was successfully set.
165165
* @since 6.3
166166
*/
167-
Executions<String> clientSetinfo(String key, V value);
167+
Executions<String> clientSetinfo(String key, String value);
168168

169169
/**
170170
* Enables the tracking feature of the Redis server, that is used for server assisted client side caching. Tracking messages
@@ -179,12 +179,10 @@ public interface NodeSelectionServerCommands<K, V> {
179179
/**
180180
* Returns information about the current client connection's use of the server assisted client side caching feature.
181181
*
182-
* @return {@link DynamicAggregateData}, for more information check the documentation
183-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfoParser
184-
* @see io.lettuce.core.api.parsers.tracking.TrackingInfo
185-
* @since 7.0
182+
* @return {@link TrackingInfo}, for more information check the documentation
183+
* @since 6.5
186184
*/
187-
Executions<DynamicAggregateData> clientTrackinginfo();
185+
Executions<TrackingInfo> clientTrackinginfo();
188186

189187
/**
190188
* Unblock the specified blocked client.

src/main/java/io/lettuce/core/output/ArrayComplexData.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@
2929
import java.util.Set;
3030

3131
/**
32-
* An implementation of the {@link DynamicAggregateData} that handles arrays.
32+
* An implementation of the {@link ComplexData} that handles arrays.
3333
* <p>
34-
* For RESP2 calling the {@link DynamicAggregateData#getDynamicMap()} would heuristically go over the list of elements assuming
35-
* every odd element is a key and every even object is the value and then adding them to an {@link Map}. The logic would follow
36-
* the same order that was used when the elements were added to the {@link ArrayAggregateData}. Similarly calling the
37-
* {@link DynamicAggregateData#getDynamicSet()} would return a set of all the elements, adding them in the same order. If - for
38-
* some reason - duplicate elements exist they would be overwritten.
34+
* For RESP2 calling the {@link ComplexData#getDynamicMap()} would heuristically go over the list of elements assuming every odd
35+
* element is a key and every even object is the value and then adding them to an {@link Map}. The logic would follow the same
36+
* order that was used when the elements were added to the {@link ArrayComplexData}. Similarly calling the
37+
* {@link ComplexData#getDynamicSet()} would return a set of all the elements, adding them in the same order. If - for some
38+
* reason - duplicate elements exist they would be overwritten.
3939
* <p>
4040
* All data structures that the implementation returns are unmodifiable
4141
*
42-
* @see DynamicAggregateData
42+
* @see ComplexData
4343
* @author Tihomir Mateev
4444
* @since 6.5
4545
*/
46-
class ArrayAggregateData extends DynamicAggregateData {
46+
class ArrayComplexData extends ComplexData {
4747

4848
private final List<Object> data;
4949

50-
public ArrayAggregateData(int count) {
50+
public ArrayComplexData(int count) {
5151
data = new ArrayList<>(count);
5252
}
5353

0 commit comments

Comments
 (0)