public interface StreamCommands extends RedisCommands
限定符和类型 | 接口和说明 |
---|---|
static class |
StreamCommands.XAddArgument |
static class |
StreamCommands.XClaimArgument |
static class |
StreamCommands.XTrimArgument |
限定符和类型 | 方法和说明 |
---|---|
Long |
xAck(byte[] key,
byte[] groupName,
StreamEntryId... ids)
The XACK command removes one or multiple messages from the Pending Entries List (PEL) of a stream consumer group
详情说明 https://redis.io/commands/xack/
|
Long |
xAck(String key,
String groupName,
StreamEntryId... ids)
The XACK command removes one or multiple messages from the Pending Entries List (PEL) of a stream consumer group
详情说明 https://redis.io/commands/xack/
|
StreamEntryId |
xAdd(byte[] key,
StreamEntryId id,
Map<byte[],byte[]> hash)
Appends the specified stream entry to the stream at the specified key.
|
StreamEntryId |
xAdd(byte[] key,
StreamEntryId id,
Map<byte[],byte[]> hash,
StreamCommands.XAddArgument xAddArgument)
Appends the specified stream entry to the stream at the specified key.
|
StreamEntryId |
xAdd(String key,
StreamEntryId id,
Map<String,String> hash)
Appends the specified stream entry to the stream at the specified key.
|
StreamEntryId |
xAdd(String key,
StreamEntryId id,
Map<String,String> hash,
StreamCommands.XAddArgument xAddArgument)
Appends the specified stream entry to the stream at the specified key.
|
Map<StreamEntryId,List<StreamEntry>> |
xAutoClaim(byte[] key,
byte[] groupName,
byte[] consumerName,
int minIdleTime,
StreamEntryId start)
This command transfers ownership of pending stream entries that match the specified criteria
详情说明 https://redis.io/commands/xautoclaim/
|
Map<StreamEntryId,List<StreamEntry>> |
xAutoClaim(byte[] key,
byte[] groupName,
byte[] consumerName,
int minIdleTime,
StreamEntryId start,
long count)
This command transfers ownership of pending stream entries that match the specified criteria
详情说明 https://redis.io/commands/xautoclaim/
|
Map<StreamEntryId,List<StreamEntry>> |
xAutoClaim(String key,
String groupName,
String consumerName,
int minIdleTime,
StreamEntryId start)
This command transfers ownership of pending stream entries that match the specified criteria
详情说明 https://redis.io/commands/xautoclaim/
|
Map<StreamEntryId,List<StreamEntry>> |
xAutoClaim(String key,
String groupName,
String consumerName,
int minIdleTime,
StreamEntryId start,
long count)
This command transfers ownership of pending stream entries that match the specified criteria
详情说明 https://redis.io/commands/xautoclaim/
|
Map<StreamEntryId,List<StreamEntryId>> |
xAutoClaimJustId(byte[] key,
byte[] groupName,
byte[] consumerName,
int minIdleTime,
StreamEntryId start)
This command transfers ownership of pending stream entries that match the specified criteria
详情说明 https://redis.io/commands/xautoclaim/
|
Map<StreamEntryId,List<StreamEntryId>> |
xAutoClaimJustId(byte[] key,
byte[] groupName,
byte[] consumerName,
int minIdleTime,
StreamEntryId start,
long count)
This command transfers ownership of pending stream entries that match the specified criteria
详情说明 https://redis.io/commands/xautoclaim/
|
Map<StreamEntryId,List<StreamEntryId>> |
xAutoClaimJustId(String key,
String groupName,
String consumerName,
int minIdleTime,
StreamEntryId start)
This command transfers ownership of pending stream entries that match the specified criteria
详情说明 https://redis.io/commands/xautoclaim/
|
Map<StreamEntryId,List<StreamEntryId>> |
xAutoClaimJustId(String key,
String groupName,
String consumerName,
int minIdleTime,
StreamEntryId start,
long count)
This command transfers ownership of pending stream entries that match the specified criteria
详情说明 https://redis.io/commands/xautoclaim/
|
List<StreamEntry> |
xClaim(byte[] key,
byte[] groupName,
byte[] consumerName,
int minIdleTime,
StreamEntryId... ids)
In the context of a stream consumer group, this command changes the ownership of a pending message,
so that the new owner is the consumer specified as the command argument
详情说明 https://redis.io/commands/xautoclaim/
|
List<StreamEntry> |
xClaim(byte[] key,
byte[] groupName,
byte[] consumerName,
int minIdleTime,
StreamEntryId[] ids,
StreamCommands.XClaimArgument xClaimArgument)
In the context of a stream consumer group, this command changes the ownership of a pending message,
so that the new owner is the consumer specified as the command argument
详情说明 https://redis.io/commands/xautoclaim/
|
List<StreamEntry> |
xClaim(String key,
String groupName,
String consumerName,
int minIdleTime,
StreamEntryId... ids)
In the context of a stream consumer group, this command changes the ownership of a pending message,
so that the new owner is the consumer specified as the command argument
详情说明 https://redis.io/commands/xclaim/
|
List<StreamEntry> |
xClaim(String key,
String groupName,
String consumerName,
int minIdleTime,
StreamEntryId[] ids,
StreamCommands.XClaimArgument xClaimArgument)
In the context of a stream consumer group, this command changes the ownership of a pending message,
so that the new owner is the consumer specified as the command argument
详情说明 https://redis.io/commands/xclaim/
|
List<StreamEntryId> |
xClaimJustId(byte[] key,
byte[] groupName,
byte[] consumerName,
int minIdleTime,
StreamEntryId... ids)
In the context of a stream consumer group, this command changes the ownership of a pending message,
so that the new owner is the consumer specified as the command argument
详情说明 https://redis.io/commands/xclaim/
|
List<StreamEntryId> |
xClaimJustId(byte[] key,
byte[] groupName,
byte[] consumerName,
int minIdleTime,
StreamEntryId[] ids,
StreamCommands.XClaimArgument xClaimArgument)
In the context of a stream consumer group, this command changes the ownership of a pending message,
so that the new owner is the consumer specified as the command argument
详情说明 https://redis.io/commands/xclaim/
|
List<StreamEntryId> |
xClaimJustId(String key,
String groupName,
String consumerName,
int minIdleTime,
StreamEntryId... ids)
In the context of a stream consumer group, this command changes the ownership of a pending message,
so that the new owner is the consumer specified as the command argument
详情说明 https://redis.io/commands/xclaim/
|
List<StreamEntryId> |
xClaimJustId(String key,
String groupName,
String consumerName,
int minIdleTime,
StreamEntryId[] ids,
StreamCommands.XClaimArgument xClaimArgument)
In the context of a stream consumer group, this command changes the ownership of a pending message,
so that the new owner is the consumer specified as the command argument
详情说明 https://redis.io/commands/xclaim/
|
Long |
xDel(byte[] key,
StreamEntryId... ids)
Removes the specified entries from a stream, and returns the number of entries deleted
详情说明 https://redis.io/commands/xdel/
|
Long |
xDel(String key,
StreamEntryId... ids)
Removes the specified entries from a stream, and returns the number of entries deleted
详情说明 https://redis.io/commands/xdel/
|
com.buession.lang.Status |
xGroupCreate(byte[] key,
byte[] groupName,
StreamEntryId id,
boolean makeStream)
This command creates a new consumer group uniquely identified by groupname for the stream stored at key
详情说明 https://redis.io/commands/xgroup-create/
|
com.buession.lang.Status |
xGroupCreate(String key,
String groupName,
StreamEntryId id,
boolean makeStream)
This command creates a new consumer group uniquely identified by groupname for the stream stored at key
详情说明 https://redis.io/commands/xgroup-create/
|
com.buession.lang.Status |
xGroupCreateConsumer(byte[] key,
byte[] groupName,
byte[] consumerName)
Create a consumer named consumername in the consumer group groupname of the stream that's stored at key
详情说明 https://redis.io/commands/xgroup-createconsumer/
|
com.buession.lang.Status |
xGroupCreateConsumer(String key,
String groupName,
String consumerName)
Create a consumer named consumername in the consumer group groupname of the stream that's stored at key
详情说明 https://redis.io/commands/xgroup-createconsumer/
|
Long |
xGroupDelConsumer(byte[] key,
byte[] groupName,
byte[] consumerName)
The XGROUP DELCONSUMER command deletes a consumer from the consumer group
详情说明 https://redis.io/commands/xgroup-delconsumer/
|
Long |
xGroupDelConsumer(String key,
String groupName,
String consumerName)
The XGROUP DELCONSUMER command deletes a consumer from the consumer group
详情说明 https://redis.io/commands/xgroup-delconsumer/
|
com.buession.lang.Status |
xGroupDestroy(byte[] key,
byte[] groupName)
The XGROUP DESTROY command completely destroys a consumer group
详情说明 https://redis.io/commands/xgroup-destroy/
|
com.buession.lang.Status |
xGroupDestroy(String key,
String groupName)
The XGROUP DESTROY command completely destroys a consumer group
详情说明 https://redis.io/commands/xgroup-destroy/
|
com.buession.lang.Status |
xGroupSetId(byte[] key,
byte[] groupName,
StreamEntryId id)
Normally, a consumer group's last delivered ID is set when the group is created with XGROUP CREATE
详情说明 https://redis.io/commands/xgroup-setid/
|
com.buession.lang.Status |
xGroupSetId(String key,
String groupName,
StreamEntryId id)
Normally, a consumer group's last delivered ID is set when the group is created with XGROUP CREATE
详情说明 https://redis.io/commands/xgroup-setid/
|
List<StreamConsumer> |
xInfoConsumers(byte[] key,
byte[] groupName)
This command returns the list of consumers that belong to the groupname consumer group of the stream stored at key
详情说明 https://redis.io/commands/xinfo-consumers/
|
List<StreamConsumer> |
xInfoConsumers(String key,
String groupName)
This command returns the list of consumers that belong to the groupname consumer group of the stream stored at key
详情说明 https://redis.io/commands/xinfo-consumers/
|
List<StreamGroup> |
xInfoGroups(byte[] key)
This command returns the list of all consumers groups of the stream stored at key
详情说明 https://redis.io/commands/xinfo-groups/
|
List<StreamGroup> |
xInfoGroups(String key)
This command returns the list of all consumers groups of the stream stored at key
详情说明 https://redis.io/commands/xinfo-groups/
|
Stream |
xInfoStream(byte[] key)
This command returns information about the stream stored at key
详情说明 https://redis.io/commands/xinfo-stream/
|
StreamFull |
xInfoStream(byte[] key,
boolean full)
This command returns information about the stream stored at key
详情说明 https://redis.io/commands/xinfo-stream/
|
StreamFull |
xInfoStream(byte[] key,
boolean full,
long count)
This command returns information about the stream stored at key
详情说明 https://redis.io/commands/xinfo-stream/
|
Stream |
xInfoStream(String key)
This command returns information about the stream stored at key
详情说明 https://redis.io/commands/xinfo-stream/
|
StreamFull |
xInfoStream(String key,
boolean full)
This command returns information about the stream stored at key
详情说明 https://redis.io/commands/xinfo-stream/
|
StreamFull |
xInfoStream(String key,
boolean full,
long count)
This command returns information about the stream stored at key
详情说明 https://redis.io/commands/xinfo-stream/
|
Long |
xLen(byte[] key)
Returns the number of entries inside a stream
详情说明 https://redis.io/commands/xlen/
|
Long |
xLen(String key)
Returns the number of entries inside a stream
详情说明 https://redis.io/commands/xlen/
|
StreamPendingSummary |
xPending(byte[] key,
byte[] groupName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(byte[] key,
byte[] groupName,
byte[] consumerName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(byte[] key,
byte[] groupName,
long minIdleTime)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(byte[] key,
byte[] groupName,
long minIdleTime,
byte[] consumerName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(byte[] key,
byte[] groupName,
long minIdleTime,
StreamEntryId start,
StreamEntryId end,
long count)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(byte[] key,
byte[] groupName,
long minIdleTime,
StreamEntryId start,
StreamEntryId end,
long count,
byte[] consumerName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(byte[] key,
byte[] groupName,
StreamEntryId start,
StreamEntryId end,
long count)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(byte[] key,
byte[] groupName,
StreamEntryId start,
StreamEntryId end,
long count,
byte[] consumerName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
StreamPendingSummary |
xPending(String key,
String groupName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(String key,
String groupName,
long minIdleTime)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(String key,
String groupName,
long minIdleTime,
StreamEntryId start,
StreamEntryId end,
long count)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(String key,
String groupName,
long minIdleTime,
StreamEntryId start,
StreamEntryId end,
long count,
String consumerName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(String key,
String groupName,
long minIdleTime,
String consumerName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(String key,
String groupName,
StreamEntryId start,
StreamEntryId end,
long count)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(String key,
String groupName,
StreamEntryId start,
StreamEntryId end,
long count,
String consumerName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamPending> |
xPending(String key,
String groupName,
String consumerName)
Fetching data from a stream via a consumer group, and not acknowledging such data, has the effect of creating pending entries
详情说明 https://redis.io/commands/xpending/
|
List<StreamEntry> |
xRange(byte[] key,
StreamEntryId start,
StreamEntryId end)
The command returns the stream entries matching a given range of IDs
详情说明 https://redis.io/commands/xrange/
|
List<StreamEntry> |
xRange(byte[] key,
StreamEntryId start,
StreamEntryId end,
long count)
The command returns the stream entries matching a given range of IDs
详情说明 https://redis.io/commands/xrange/
|
List<StreamEntry> |
xRange(String key,
StreamEntryId start,
StreamEntryId end)
The command returns the stream entries matching a given range of IDs
详情说明 https://redis.io/commands/xrange/
|
List<StreamEntry> |
xRange(String key,
StreamEntryId start,
StreamEntryId end,
long count)
The command returns the stream entries matching a given range of IDs
详情说明 https://redis.io/commands/xrange/
|
List<Map<String,List<StreamEntry>>> |
xRead(int block,
Map<String,StreamEntryId> streams)
Read data from one or multiple streams, only returning entries with an ID greater than the last received ID reported by the caller
详情说明 https://redis.io/commands/xread/
|
List<Map<String,List<StreamEntry>>> |
xRead(long count,
int block,
Map<String,StreamEntryId> streams)
Read data from one or multiple streams, only returning entries with an ID greater than the last received ID reported by the caller
详情说明 https://redis.io/commands/xread/
|
List<Map<String,List<StreamEntry>>> |
xRead(long count,
Map<String,StreamEntryId> streams)
Read data from one or multiple streams, only returning entries with an ID greater than the last received ID reported by the caller
详情说明 https://redis.io/commands/xread/
|
List<Map<String,List<StreamEntry>>> |
xRead(Map<String,StreamEntryId> streams)
Read data from one or multiple streams, only returning entries with an ID greater than the last received ID reported by the caller
详情说明 https://redis.io/commands/xread/
|
List<Map<byte[],List<StreamEntry>>> |
xReadGroup(byte[] groupName,
byte[] consumerName,
boolean isNoAck,
Map<byte[],StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<byte[],List<StreamEntry>>> |
xReadGroup(byte[] groupName,
byte[] consumerName,
int block,
boolean isNoAck,
Map<byte[],StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<byte[],List<StreamEntry>>> |
xReadGroup(byte[] groupName,
byte[] consumerName,
int block,
Map<byte[],StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<byte[],List<StreamEntry>>> |
xReadGroup(byte[] groupName,
byte[] consumerName,
long count,
boolean isNoAck,
Map<byte[],StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<byte[],List<StreamEntry>>> |
xReadGroup(byte[] groupName,
byte[] consumerName,
long count,
int block,
boolean isNoAck,
Map<byte[],StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<byte[],List<StreamEntry>>> |
xReadGroup(byte[] groupName,
byte[] consumerName,
long count,
int block,
Map<byte[],StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<byte[],List<StreamEntry>>> |
xReadGroup(byte[] groupName,
byte[] consumerName,
long count,
Map<byte[],StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<byte[],List<StreamEntry>>> |
xReadGroup(byte[] groupName,
byte[] consumerName,
Map<byte[],StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<String,List<StreamEntry>>> |
xReadGroup(String groupName,
String consumerName,
boolean isNoAck,
Map<String,StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<String,List<StreamEntry>>> |
xReadGroup(String groupName,
String consumerName,
int block,
boolean isNoAck,
Map<String,StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<String,List<StreamEntry>>> |
xReadGroup(String groupName,
String consumerName,
int block,
Map<String,StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<String,List<StreamEntry>>> |
xReadGroup(String groupName,
String consumerName,
long count,
boolean isNoAck,
Map<String,StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<String,List<StreamEntry>>> |
xReadGroup(String groupName,
String consumerName,
long count,
int block,
boolean isNoAck,
Map<String,StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<String,List<StreamEntry>>> |
xReadGroup(String groupName,
String consumerName,
long count,
int block,
Map<String,StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<String,List<StreamEntry>>> |
xReadGroup(String groupName,
String consumerName,
long count,
Map<String,StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<Map<String,List<StreamEntry>>> |
xReadGroup(String groupName,
String consumerName,
Map<String,StreamEntryId> streams)
The XREADGROUP command is a special version of the XREAD command with support for consumer groups
详情说明 https://redis.io/commands/xreadgroup/
|
List<StreamEntry> |
xRevRange(byte[] key,
StreamEntryId end,
StreamEntryId start)
This command is exactly like XRANGE, but with the notable difference of returning the entries in reverse order,
and also taking the start-end range in reverse order: in XREVRANGE you need to state the end ID and later the start ID,
and the command will produce all the element between (or exactly like) the two IDs, starting from the end side
详情说明 https://redis.io/commands/xrevrange/
|
List<StreamEntry> |
xRevRange(byte[] key,
StreamEntryId end,
StreamEntryId start,
long count)
This command is exactly like XRANGE, but with the notable difference of returning the entries in reverse order,
and also taking the start-end range in reverse order: in XREVRANGE you need to state the end ID and later the start ID,
and the command will produce all the element between (or exactly like) the two IDs, starting from the end side
详情说明 https://redis.io/commands/xrevrange/
|
List<StreamEntry> |
xRevRange(String key,
StreamEntryId end,
StreamEntryId start)
This command is exactly like XRANGE, but with the notable difference of returning the entries in reverse order,
and also taking the start-end range in reverse order: in XREVRANGE you need to state the end ID and later the start ID,
and the command will produce all the element between (or exactly like) the two IDs, starting from the end side
详情说明 https://redis.io/commands/xrevrange/
|
List<StreamEntry> |
xRevRange(String key,
StreamEntryId end,
StreamEntryId start,
long count)
This command is exactly like XRANGE, but with the notable difference of returning the entries in reverse order,
and also taking the start-end range in reverse order: in XREVRANGE you need to state the end ID and later the start ID,
and the command will produce all the element between (or exactly like) the two IDs, starting from the end side
详情说明 https://redis.io/commands/xrevrange/
|
Long |
xTrim(byte[] key,
StreamCommands.XTrimArgument xTrimArgument)
XTRIM trims the stream by evicting older entries (entries with lower IDs) if needed
详情说明 https://redis.io/commands/xtrim/
|
Long |
xTrim(byte[] key,
StreamCommands.XTrimArgument xTrimArgument,
long limit)
XTRIM trims the stream by evicting older entries (entries with lower IDs) if needed
详情说明 https://redis.io/commands/xtrim/
|
Long |
xTrim(String key,
StreamCommands.XTrimArgument xTrimArgument)
XTRIM trims the stream by evicting older entries (entries with lower IDs) if needed
详情说明 https://redis.io/commands/xtrim/
|
Long |
xTrim(String key,
StreamCommands.XTrimArgument xTrimArgument,
long limit)
XTRIM trims the stream by evicting older entries (entries with lower IDs) if needed
详情说明 https://redis.io/commands/xtrim/
|
Long xAck(String key, String groupName, StreamEntryId... ids)
key
- KeygroupName
- Group Nameids
- 一个或多个 IDLong xAck(byte[] key, byte[] groupName, StreamEntryId... ids)
key
- KeygroupName
- Group Nameids
- 一个或多个 IDStreamEntryId xAdd(String key, StreamEntryId id, Map<String,String> hash)
key
- Keyid
- Idhash
- HashStreamEntryId
StreamEntryId xAdd(byte[] key, StreamEntryId id, Map<byte[],byte[]> hash)
key
- Keyid
- Idhash
- HashStreamEntryId
StreamEntryId xAdd(String key, StreamEntryId id, Map<String,String> hash, StreamCommands.XAddArgument xAddArgument)
key
- Keyid
- Idhash
- HashxAddArgument
- StreamCommands.XAddArgument
StreamEntryId
StreamEntryId xAdd(byte[] key, StreamEntryId id, Map<byte[],byte[]> hash, StreamCommands.XAddArgument xAddArgument)
key
- Keyid
- Idhash
- HashxAddArgument
- StreamCommands.XAddArgument
StreamEntryId
Map<StreamEntryId,List<StreamEntry>> xAutoClaim(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId start)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thanStreamEntryId
和对应的 StreamEntry
Map<StreamEntryId,List<StreamEntry>> xAutoClaim(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId start)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thanStreamEntryId
和对应的 StreamEntry
Map<StreamEntryId,List<StreamEntry>> xAutoClaim(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId start, long count)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thancount
- 数量StreamEntryId
和对应的 StreamEntry
Map<StreamEntryId,List<StreamEntry>> xAutoClaim(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId start, long count)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thancount
- 数量StreamEntryId
和对应的 StreamEntry
Map<StreamEntryId,List<StreamEntryId>> xAutoClaimJustId(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId start)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thanStreamEntryId
和对应的 StreamEntryId
Map<StreamEntryId,List<StreamEntryId>> xAutoClaimJustId(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId start)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thanStreamEntryId
和对应的 StreamEntryId
Map<StreamEntryId,List<StreamEntryId>> xAutoClaimJustId(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId start, long count)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thancount
- 数量StreamEntryId
和对应的 StreamEntryId
Map<StreamEntryId,List<StreamEntryId>> xAutoClaimJustId(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId start, long count)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thancount
- 数量StreamEntryId
和对应的 StreamEntryId
List<StreamEntry> xClaim(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId... ids)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDStreamEntry
列表List<StreamEntry> xClaim(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId... ids)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDStreamEntry
列表List<StreamEntry> xClaim(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId[] ids, StreamCommands.XClaimArgument xClaimArgument)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDxClaimArgument
- StreamCommands.XClaimArgument
StreamEntry
列表List<StreamEntry> xClaim(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId[] ids, StreamCommands.XClaimArgument xClaimArgument)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDxClaimArgument
- StreamCommands.XClaimArgument
StreamEntry
列表List<StreamEntryId> xClaimJustId(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId... ids)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDStreamEntryId
列表List<StreamEntryId> xClaimJustId(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId... ids)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDStreamEntryId
列表List<StreamEntryId> xClaimJustId(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId[] ids, StreamCommands.XClaimArgument xClaimArgument)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDxClaimArgument
- StreamCommands.XClaimArgument
StreamEntryId
列表List<StreamEntryId> xClaimJustId(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId[] ids, StreamCommands.XClaimArgument xClaimArgument)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDxClaimArgument
- StreamCommands.XClaimArgument
StreamEntryId
列表Long xDel(String key, StreamEntryId... ids)
key
- Keyids
- 一个或多个 IDLong xDel(byte[] key, StreamEntryId... ids)
key
- Keyids
- 一个或多个 IDcom.buession.lang.Status xGroupCreate(String key, String groupName, StreamEntryId id, boolean makeStream)
key
- KeygroupName
- Group Nameid
- IDmakeStream
- Can use the optional MKSTREAM subcommand as the last argument after the id to automatically create the stream (with length of 0)com.buession.lang.Status xGroupCreate(byte[] key, byte[] groupName, StreamEntryId id, boolean makeStream)
key
- KeygroupName
- Group Nameid
- IDmakeStream
- Can use the optional MKSTREAM subcommand as the last argument after the id to automatically create the stream (with length of 0)com.buession.lang.Status xGroupCreateConsumer(String key, String groupName, String consumerName)
key
- KeygroupName
- Group NameconsumerName
- Consumer Namecom.buession.lang.Status xGroupCreateConsumer(byte[] key, byte[] groupName, byte[] consumerName)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameLong xGroupDelConsumer(String key, String groupName, String consumerName)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameLong xGroupDelConsumer(byte[] key, byte[] groupName, byte[] consumerName)
key
- KeygroupName
- Group NameconsumerName
- Consumer Namecom.buession.lang.Status xGroupDestroy(String key, String groupName)
key
- KeygroupName
- Group Namecom.buession.lang.Status xGroupDestroy(byte[] key, byte[] groupName)
key
- KeygroupName
- Group Namecom.buession.lang.Status xGroupSetId(String key, String groupName, StreamEntryId id)
key
- KeygroupName
- Group Nameid
- IDcom.buession.lang.Status xGroupSetId(byte[] key, byte[] groupName, StreamEntryId id)
key
- KeygroupName
- Group Nameid
- IDList<StreamConsumer> xInfoConsumers(String key, String groupName)
key
- KeygroupName
- Group NameStreamConsumer
列表List<StreamConsumer> xInfoConsumers(byte[] key, byte[] groupName)
key
- KeygroupName
- Group NameStreamConsumer
列表List<StreamGroup> xInfoGroups(String key)
key
- KeyStreamGroup
列表List<StreamGroup> xInfoGroups(byte[] key)
key
- KeyStreamGroup
列表Stream xInfoStream(String key)
key
- KeyStream
Stream xInfoStream(byte[] key)
key
- KeyStream
StreamFull xInfoStream(String key, boolean full)
key
- Keyfull
- FullStreamFull
StreamFull xInfoStream(byte[] key, boolean full)
key
- Keyfull
- FullStreamFull
StreamFull xInfoStream(String key, boolean full, long count)
key
- Keyfull
- Fullcount
- 返回数量StreamFull
StreamFull xInfoStream(byte[] key, boolean full, long count)
key
- Keyfull
- Fullcount
- 返回数量StreamFull
Long xLen(String key)
key
- KeyLong xLen(byte[] key)
key
- KeyStreamPendingSummary xPending(String key, String groupName)
key
- KeygroupName
- Group NameStreamPendingSummary
StreamPendingSummary xPending(byte[] key, byte[] groupName)
key
- KeygroupName
- Group NameStreamPendingSummary
List<StreamPending> xPending(String key, String groupName, long minIdleTime)
key
- KeygroupName
- Group NameminIdleTime
- Min Idle TimeStreamPending
列表List<StreamPending> xPending(byte[] key, byte[] groupName, long minIdleTime)
key
- KeygroupName
- Group NameminIdleTime
- Min Idle TimeStreamPending
列表List<StreamPending> xPending(String key, String groupName, StreamEntryId start, StreamEntryId end, long count)
key
- KeygroupName
- Group Namestart
- Start Idend
- End Idcount
- 返回数量StreamPending
列表List<StreamPending> xPending(byte[] key, byte[] groupName, StreamEntryId start, StreamEntryId end, long count)
key
- KeygroupName
- Group Namestart
- Start Idend
- End Idcount
- 返回数量StreamPending
列表List<StreamPending> xPending(String key, String groupName, String consumerName)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameStreamPending
列表List<StreamPending> xPending(byte[] key, byte[] groupName, byte[] consumerName)
key
- KeygroupName
- Group NameconsumerName
- Consumer NameStreamPending
列表List<StreamPending> xPending(String key, String groupName, long minIdleTime, StreamEntryId start, StreamEntryId end, long count)
key
- KeygroupName
- Group NameminIdleTime
- Min Idle Timestart
- Start Idend
- End Idcount
- 返回数量StreamPending
列表List<StreamPending> xPending(byte[] key, byte[] groupName, long minIdleTime, StreamEntryId start, StreamEntryId end, long count)
key
- KeygroupName
- Group NameminIdleTime
- Min Idle Timestart
- Start Idend
- End Idcount
- 返回数量StreamPending
列表List<StreamPending> xPending(String key, String groupName, long minIdleTime, String consumerName)
key
- KeygroupName
- Group NameminIdleTime
- Min Idle TimeconsumerName
- Consumer NameStreamPending
列表List<StreamPending> xPending(byte[] key, byte[] groupName, long minIdleTime, byte[] consumerName)
key
- KeygroupName
- Group NameminIdleTime
- Min Idle TimeconsumerName
- Consumer NameStreamPending
列表List<StreamPending> xPending(String key, String groupName, StreamEntryId start, StreamEntryId end, long count, String consumerName)
key
- KeygroupName
- Group Namestart
- Start Idend
- End Idcount
- 返回数量consumerName
- Consumer NameStreamPending
列表List<StreamPending> xPending(byte[] key, byte[] groupName, StreamEntryId start, StreamEntryId end, long count, byte[] consumerName)
key
- KeygroupName
- Group Namestart
- Start Idend
- End Idcount
- 返回数量consumerName
- Consumer NameStreamPending
列表List<StreamPending> xPending(String key, String groupName, long minIdleTime, StreamEntryId start, StreamEntryId end, long count, String consumerName)
key
- KeygroupName
- Group NameminIdleTime
- Min Idle Timestart
- Start Idend
- End Idcount
- 返回数量consumerName
- Consumer NameStreamPending
列表List<StreamPending> xPending(byte[] key, byte[] groupName, long minIdleTime, StreamEntryId start, StreamEntryId end, long count, byte[] consumerName)
key
- KeygroupName
- Group NameminIdleTime
- Min Idle Timestart
- Start Idend
- End Idcount
- 返回数量consumerName
- Consumer NameStreamPending
列表List<StreamEntry> xRange(String key, StreamEntryId start, StreamEntryId end)
key
- Keystart
- Start Idend
- End IdStreamEntry
列表List<StreamEntry> xRange(byte[] key, StreamEntryId start, StreamEntryId end)
key
- Keystart
- Start Idend
- End IdStreamEntry
列表List<StreamEntry> xRange(String key, StreamEntryId start, StreamEntryId end, long count)
key
- Keystart
- Start Idend
- End Idcount
- 返回数量StreamEntry
列表List<StreamEntry> xRange(byte[] key, StreamEntryId start, StreamEntryId end, long count)
key
- Keystart
- Start Idend
- End Idcount
- 返回数量StreamEntry
列表List<Map<String,List<StreamEntry>>> xRead(Map<String,StreamEntryId> streams)
streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xRead(long count, Map<String,StreamEntryId> streams)
count
- 返回数量streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xRead(int block, Map<String,StreamEntryId> streams)
block
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xRead(long count, int block, Map<String,StreamEntryId> streams)
count
- 返回数量block
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, Map<String,StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namestreams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, Map<byte[],StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namestreams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, long count, Map<String,StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, long count, Map<byte[],StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, int block, Map<String,StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Nameblock
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, int block, Map<byte[],StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Nameblock
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, boolean isNoAck, Map<String,StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer NameisNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, boolean isNoAck, Map<byte[],StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer NameisNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, long count, int block, Map<String,StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量block
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, long count, int block, Map<byte[],StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量block
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, long count, boolean isNoAck, Map<String,StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, long count, boolean isNoAck, Map<byte[],StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, int block, boolean isNoAck, Map<String,StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Nameblock
- 阻塞时间(单位:毫秒)isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, int block, boolean isNoAck, Map<byte[],StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Nameblock
- 阻塞时间(单位:毫秒)isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, long count, int block, boolean isNoAck, Map<String,StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量block
- 阻塞时间(单位:毫秒)isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, long count, int block, boolean isNoAck, Map<byte[],StreamEntryId> streams)
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量block
- 阻塞时间(单位:毫秒)isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表List<StreamEntry> xRevRange(String key, StreamEntryId end, StreamEntryId start)
key
- Keyend
- End Idstart
- Start IdStreamEntry
列表List<StreamEntry> xRevRange(byte[] key, StreamEntryId end, StreamEntryId start)
key
- Keyend
- End Idstart
- Start IdStreamEntry
列表List<StreamEntry> xRevRange(String key, StreamEntryId end, StreamEntryId start, long count)
key
- Keyend
- End Idstart
- Start Idcount
- 返回数量StreamEntry
列表List<StreamEntry> xRevRange(byte[] key, StreamEntryId end, StreamEntryId start, long count)
key
- Keyend
- End Idstart
- Start Idcount
- 返回数量StreamEntry
列表Long xTrim(String key, StreamCommands.XTrimArgument xTrimArgument)
key
- KeyxTrimArgument
- StreamCommands.XTrimArgument
Long xTrim(byte[] key, StreamCommands.XTrimArgument xTrimArgument)
key
- KeyxTrimArgument
- StreamCommands.XTrimArgument
Long xTrim(String key, StreamCommands.XTrimArgument xTrimArgument, long limit)
key
- KeyxTrimArgument
- StreamCommands.XTrimArgument
limit
- LimitLong xTrim(byte[] key, StreamCommands.XTrimArgument xTrimArgument, long limit)
key
- KeyxTrimArgument
- StreamCommands.XTrimArgument
limit
- LimitCopyright © 2022 buession.com Inc.. All rights reserved.