Package redis.clients.jedis
Class Protocol
- java.lang.Object
-
- redis.clients.jedis.Protocol
-
public final class Protocol extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Protocol.Command
static class
Protocol.Keyword
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
read(RedisInputStream is)
static String
readErrorLineIfPossible(RedisInputStream is)
static void
sendCommand(RedisOutputStream os, ProtocolCommand command, byte[]... args)
static byte[]
toByteArray(boolean value)
static byte[]
toByteArray(double value)
static byte[]
toByteArray(int value)
static byte[]
toByteArray(long value)
-
-
-
Field Detail
-
DEFAULT_HOST
public static final String DEFAULT_HOST
- See Also:
- Constant Field Values
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
DEFAULT_SENTINEL_PORT
public static final int DEFAULT_SENTINEL_PORT
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_DATABASE
public static final int DEFAULT_DATABASE
- See Also:
- Constant Field Values
-
CHARSET
public static final String CHARSET
- See Also:
- Constant Field Values
-
DOLLAR_BYTE
public static final byte DOLLAR_BYTE
- See Also:
- Constant Field Values
-
ASTERISK_BYTE
public static final byte ASTERISK_BYTE
- See Also:
- Constant Field Values
-
PLUS_BYTE
public static final byte PLUS_BYTE
- See Also:
- Constant Field Values
-
MINUS_BYTE
public static final byte MINUS_BYTE
- See Also:
- Constant Field Values
-
COLON_BYTE
public static final byte COLON_BYTE
- See Also:
- Constant Field Values
-
SENTINEL_MASTERS
public static final String SENTINEL_MASTERS
- See Also:
- Constant Field Values
-
SENTINEL_GET_MASTER_ADDR_BY_NAME
public static final String SENTINEL_GET_MASTER_ADDR_BY_NAME
- See Also:
- Constant Field Values
-
SENTINEL_RESET
public static final String SENTINEL_RESET
- See Also:
- Constant Field Values
-
SENTINEL_SLAVES
public static final String SENTINEL_SLAVES
- See Also:
- Constant Field Values
-
SENTINEL_FAILOVER
public static final String SENTINEL_FAILOVER
- See Also:
- Constant Field Values
-
SENTINEL_MONITOR
public static final String SENTINEL_MONITOR
- See Also:
- Constant Field Values
-
SENTINEL_REMOVE
public static final String SENTINEL_REMOVE
- See Also:
- Constant Field Values
-
SENTINEL_SET
public static final String SENTINEL_SET
- See Also:
- Constant Field Values
-
CLUSTER_NODES
public static final String CLUSTER_NODES
- See Also:
- Constant Field Values
-
CLUSTER_MEET
public static final String CLUSTER_MEET
- See Also:
- Constant Field Values
-
CLUSTER_RESET
public static final String CLUSTER_RESET
- See Also:
- Constant Field Values
-
CLUSTER_ADDSLOTS
public static final String CLUSTER_ADDSLOTS
- See Also:
- Constant Field Values
-
CLUSTER_DELSLOTS
public static final String CLUSTER_DELSLOTS
- See Also:
- Constant Field Values
-
CLUSTER_INFO
public static final String CLUSTER_INFO
- See Also:
- Constant Field Values
-
CLUSTER_GETKEYSINSLOT
public static final String CLUSTER_GETKEYSINSLOT
- See Also:
- Constant Field Values
-
CLUSTER_SETSLOT
public static final String CLUSTER_SETSLOT
- See Also:
- Constant Field Values
-
CLUSTER_SETSLOT_NODE
public static final String CLUSTER_SETSLOT_NODE
- See Also:
- Constant Field Values
-
CLUSTER_SETSLOT_MIGRATING
public static final String CLUSTER_SETSLOT_MIGRATING
- See Also:
- Constant Field Values
-
CLUSTER_SETSLOT_IMPORTING
public static final String CLUSTER_SETSLOT_IMPORTING
- See Also:
- Constant Field Values
-
CLUSTER_SETSLOT_STABLE
public static final String CLUSTER_SETSLOT_STABLE
- See Also:
- Constant Field Values
-
CLUSTER_FORGET
public static final String CLUSTER_FORGET
- See Also:
- Constant Field Values
-
CLUSTER_FLUSHSLOT
public static final String CLUSTER_FLUSHSLOT
- See Also:
- Constant Field Values
-
CLUSTER_KEYSLOT
public static final String CLUSTER_KEYSLOT
- See Also:
- Constant Field Values
-
CLUSTER_COUNTKEYINSLOT
public static final String CLUSTER_COUNTKEYINSLOT
- See Also:
- Constant Field Values
-
CLUSTER_SAVECONFIG
public static final String CLUSTER_SAVECONFIG
- See Also:
- Constant Field Values
-
CLUSTER_REPLICATE
public static final String CLUSTER_REPLICATE
- See Also:
- Constant Field Values
-
CLUSTER_SLAVES
public static final String CLUSTER_SLAVES
- See Also:
- Constant Field Values
-
CLUSTER_FAILOVER
public static final String CLUSTER_FAILOVER
- See Also:
- Constant Field Values
-
CLUSTER_SLOTS
public static final String CLUSTER_SLOTS
- See Also:
- Constant Field Values
-
PUBSUB_CHANNELS
public static final String PUBSUB_CHANNELS
- See Also:
- Constant Field Values
-
PUBSUB_NUMSUB
public static final String PUBSUB_NUMSUB
- See Also:
- Constant Field Values
-
PUBSUB_NUM_PAT
public static final String PUBSUB_NUM_PAT
- See Also:
- Constant Field Values
-
BYTES_TRUE
public static final byte[] BYTES_TRUE
-
BYTES_FALSE
public static final byte[] BYTES_FALSE
-
BYTES_TILDE
public static final byte[] BYTES_TILDE
-
POSITIVE_INFINITY_BYTES
public static final byte[] POSITIVE_INFINITY_BYTES
-
NEGATIVE_INFINITY_BYTES
public static final byte[] NEGATIVE_INFINITY_BYTES
-
-
Method Detail
-
sendCommand
public static void sendCommand(RedisOutputStream os, ProtocolCommand command, byte[]... args)
-
readErrorLineIfPossible
public static String readErrorLineIfPossible(RedisInputStream is)
-
read
public static Object read(RedisInputStream is)
-
toByteArray
public static final byte[] toByteArray(boolean value)
-
toByteArray
public static final byte[] toByteArray(int value)
-
toByteArray
public static final byte[] toByteArray(long value)
-
toByteArray
public static final byte[] toByteArray(double value)
-
-