Skip to content

Commit

Permalink
Deprecate EVERYTHING about Gears module
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Sep 26, 2024
1 parent 666d90b commit 1c8c335
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.util.List;

@Deprecated
public interface RedisGearsCommands {

@Deprecated default String tFunctionLoad(String libraryCode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.util.SafeEncoder;

@Deprecated
public class RedisGearsProtocol {

@Deprecated
public enum GearsCommand implements ProtocolCommand {

@Deprecated TFUNCTION,
Expand All @@ -24,6 +26,7 @@ public byte[] getRaw() {
}
}

@Deprecated
public enum GearsKeyword implements Rawable {

CONFIG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import java.util.Collections;

@Deprecated
public class TFunctionListParams implements IParams {
private boolean withCode = false;
private int verbose;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import redis.clients.jedis.gears.RedisGearsProtocol.GearsKeyword;
import redis.clients.jedis.params.IParams;

@Deprecated
public class TFunctionLoadParams implements IParams {
private boolean replace = false;
private String config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import static redis.clients.jedis.BuilderFactory.*;

@Deprecated
public class FunctionInfo {
private final String name;
private final String description;
Expand Down Expand Up @@ -40,6 +41,7 @@ public FunctionInfo(String name, String description, boolean isAsync, List<Strin
this.flags = flags;
}

@Deprecated
public static final Builder<List<FunctionInfo>> FUNCTION_INFO_LIST = new Builder<List<FunctionInfo>>() {
@Override
public List<FunctionInfo> build(Object data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.List;
import java.util.stream.Collectors;

@Deprecated
public class FunctionStreamInfo {
private final String name;
private final String idToReadFrom;
Expand Down Expand Up @@ -67,6 +68,7 @@ public FunctionStreamInfo(String name, String idToReadFrom, String lastError,
this.pendingIds = pendingIds;
}

@Deprecated
public static final Builder<List<FunctionStreamInfo>> STREAM_INFO_LIST = new Builder<List<FunctionStreamInfo>>() {
@Override
public List<FunctionStreamInfo> build(Object data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import static redis.clients.jedis.gears.resps.StreamTriggerInfo.STREAM_TRIGGER_INFO_LIST;
import static redis.clients.jedis.gears.resps.TriggerInfo.KEYSPACE_TRIGGER_INFO_LIST;

@Deprecated
public class GearsLibraryInfo {
private final String apiVersion;
private final List<String> clusterFunctions;
Expand Down Expand Up @@ -90,6 +91,7 @@ public String getUser() {
return user;
}

@Deprecated
public static final Builder<GearsLibraryInfo> GEARS_LIBRARY_INFO = new Builder<GearsLibraryInfo>() {
@Override
public GearsLibraryInfo build(Object data) {
Expand Down Expand Up @@ -171,6 +173,7 @@ public GearsLibraryInfo build(Object data) {
}
};

@Deprecated
public static final Builder<List<GearsLibraryInfo>> GEARS_LIBRARY_INFO_LIST = new Builder<List<GearsLibraryInfo>>() {
@Override
public List<GearsLibraryInfo> build(Object data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import static redis.clients.jedis.BuilderFactory.*;
import static redis.clients.jedis.gears.resps.FunctionStreamInfo.STREAM_INFO_LIST;

@Deprecated
public class StreamTriggerInfo {
private final String name;
private final String description;
Expand Down Expand Up @@ -60,6 +61,7 @@ public StreamTriggerInfo(String name, String description, String prefix,
this(name, description, prefix, window, trim, Collections.emptyList());
}

@Deprecated
public static final Builder<List<StreamTriggerInfo>> STREAM_TRIGGER_INFO_LIST = new Builder<List<StreamTriggerInfo>>() {
@Override
public List<StreamTriggerInfo> build(Object data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import static redis.clients.jedis.BuilderFactory.LONG;
import static redis.clients.jedis.BuilderFactory.STRING;

@Deprecated
public class TriggerInfo {
private final String name;
private final String description;
Expand Down Expand Up @@ -80,6 +81,7 @@ public TriggerInfo(String name, String description, String lastError, long numFi
this.totalExecutionTime = totalExecutionTime;
}

@Deprecated
public static final Builder<List<TriggerInfo>> KEYSPACE_TRIGGER_INFO_LIST = new Builder<List<TriggerInfo>>() {
@Override
public List<TriggerInfo> build(Object data) {
Expand Down

0 comments on commit 1c8c335

Please sign in to comment.