Skip to content

Commit

Permalink
Use Experimental annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Mar 27, 2024
1 parent adf692e commit b58462c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/redis/clients/jedis/CommandArguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.Collection;
import java.util.Iterator;

import redis.clients.jedis.annots.Experimental;
import redis.clients.jedis.args.Rawable;
import redis.clients.jedis.args.RawableFactory;
import redis.clients.jedis.commands.ProtocolCommand;
Expand All @@ -30,6 +31,7 @@ public ProtocolCommand getCommand() {
return (ProtocolCommand) args.get(0);
}

@Experimental
void setKeyArgumentPreProcessor(CommandKeyArgumentPreProcessor keyPreProcessor) {
this.keyPreProc = keyPreProcessor;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package redis.clients.jedis;

import redis.clients.jedis.annots.Experimental;

@Experimental
public interface CommandKeyArgumentPreProcessor {

/**
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/redis/clients/jedis/CommandObjects.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import redis.clients.jedis.Protocol.Command;
import redis.clients.jedis.Protocol.Keyword;
import redis.clients.jedis.annots.Experimental;
import redis.clients.jedis.args.*;
import redis.clients.jedis.bloom.*;
import redis.clients.jedis.bloom.RedisBloomProtocol.*;
Expand Down Expand Up @@ -59,6 +60,7 @@ void setBroadcastAndRoundRobinConfig(JedisBroadcastAndRoundRobinConfig config) {
this.broadcastAndRoundRobinConfig = config;
}

@Experimental
void setKeyArgumentPreProcessor(CommandKeyArgumentPreProcessor keyPreProcessor) {
this.keyPreProcessor = keyPreProcessor;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/redis/clients/jedis/UnifiedJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -4926,6 +4926,7 @@ public Object executeCommand(CommandArguments args) {
return executeCommand(new CommandObject<>(args, BuilderFactory.RAW_OBJECT));
}

@Experimental
public void setKeyArgumentPreProcessor(CommandKeyArgumentPreProcessor keyPreProcessor) {
this.commandObjects.setKeyArgumentPreProcessor(keyPreProcessor);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package redis.clients.jedis.util;

import redis.clients.jedis.CommandKeyArgumentPreProcessor;
import redis.clients.jedis.annots.Experimental;
import redis.clients.jedis.args.Rawable;
import redis.clients.jedis.args.RawableFactory;

@Experimental
public class PrefixedKeyArgumentPreProcessor implements CommandKeyArgumentPreProcessor {

private final byte[] prefixBytes;
Expand Down

0 comments on commit b58462c

Please sign in to comment.