public final class JedisClusterStreamOperations extends AbstractStreamOperations<JedisClusterClient>
StreamCommands.XAddArgument, StreamCommands.XClaimArgument, StreamCommands.XTrimArgument
JedisRedisOperations.AbstractJedisCommand<CLIENT extends JedisRedisClient,CONN extends JedisRedisConnection,R>, JedisRedisOperations.JedisClusterCommand<R>, JedisRedisOperations.JedisCommand<R>, JedisRedisOperations.JedisSentinelCommand<R>
client
logger
构造器和说明 |
---|
JedisClusterStreamOperations(JedisClusterClient client) |
限定符和类型 | 方法和说明 |
---|---|
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,
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(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(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(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(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(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(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(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(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(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(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(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(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<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(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/
|
afterBianryXReadGroup, xAck, xAdd, xAutoClaim, xAutoClaim, xAutoClaimJustId, xAutoClaimJustId, xClaim, xClaim, xClaimJustId, xClaimJustId, xDel, xGroupCreate, xGroupSetId, xInfoConsumers, xInfoGroups, xInfoStream, xInfoStream, xInfoStream, xPending, xPending, xPending, xPending, xPending, xPending, xPending, xPending, xRange, xRange, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xRevRange, xRevRange
public JedisClusterStreamOperations(JedisClusterClient client)
public Long xAck(String key, String groupName, StreamEntryId... ids)
StreamCommands
key
- KeygroupName
- Group Nameids
- 一个或多个 IDpublic StreamEntryId xAdd(String key, StreamEntryId id, Map<String,String> hash)
StreamCommands
key
- Keyid
- Idhash
- HashStreamEntryId
public StreamEntryId xAdd(String key, StreamEntryId id, Map<String,String> hash, StreamCommands.XAddArgument xAddArgument)
StreamCommands
key
- Keyid
- Idhash
- HashxAddArgument
- StreamCommands.XAddArgument
StreamEntryId
public StreamEntryId xAdd(byte[] key, StreamEntryId id, Map<byte[],byte[]> hash, StreamCommands.XAddArgument xAddArgument)
StreamCommands
key
- Keyid
- Idhash
- HashxAddArgument
- StreamCommands.XAddArgument
StreamEntryId
public Map<StreamEntryId,List<StreamEntry>> xAutoClaim(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId start)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thanStreamEntryId
和对应的 StreamEntry
public Map<StreamEntryId,List<StreamEntry>> xAutoClaim(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId start, long count)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thancount
- 数量StreamEntryId
和对应的 StreamEntry
public Map<StreamEntryId,List<StreamEntryId>> xAutoClaimJustId(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId start)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thanStreamEntryId
和对应的 StreamEntryId
public Map<StreamEntryId,List<StreamEntryId>> xAutoClaimJustId(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId start, long count)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thancount
- 数量StreamEntryId
和对应的 StreamEntryId
public List<StreamEntry> xClaim(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId... ids)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDStreamEntry
列表public List<StreamEntry> xClaim(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId[] ids, StreamCommands.XClaimArgument xClaimArgument)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDxClaimArgument
- StreamCommands.XClaimArgument
StreamEntry
列表public List<StreamEntryId> xClaimJustId(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId... ids)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDStreamEntryId
列表public List<StreamEntryId> xClaimJustId(String key, String groupName, String consumerName, int minIdleTime, StreamEntryId[] ids, StreamCommands.XClaimArgument xClaimArgument)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDxClaimArgument
- StreamCommands.XClaimArgument
StreamEntryId
列表public Long xDel(String key, StreamEntryId... ids)
StreamCommands
key
- Keyids
- 一个或多个 IDpublic com.buession.lang.Status xGroupCreate(String key, String groupName, StreamEntryId id, boolean makeStream)
StreamCommands
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)public com.buession.lang.Status xGroupCreateConsumer(String key, String groupName, String consumerName)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer Namepublic com.buession.lang.Status xGroupCreateConsumer(byte[] key, byte[] groupName, byte[] consumerName)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer Namepublic Long xGroupDelConsumer(String key, String groupName, String consumerName)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer Namepublic Long xGroupDelConsumer(byte[] key, byte[] groupName, byte[] consumerName)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer Namepublic com.buession.lang.Status xGroupDestroy(String key, String groupName)
StreamCommands
key
- KeygroupName
- Group Namepublic com.buession.lang.Status xGroupDestroy(byte[] key, byte[] groupName)
StreamCommands
key
- KeygroupName
- Group Namepublic com.buession.lang.Status xGroupSetId(String key, String groupName, StreamEntryId id)
StreamCommands
key
- KeygroupName
- Group Nameid
- IDpublic List<StreamConsumer> xInfoConsumers(String key, String groupName)
StreamCommands
key
- KeygroupName
- Group NameStreamConsumer
列表public List<StreamGroup> xInfoGroups(String key)
StreamCommands
key
- KeyStreamGroup
列表public Stream xInfoStream(String key)
StreamCommands
key
- KeyStream
public StreamFull xInfoStream(String key, boolean full)
StreamCommands
key
- Keyfull
- FullStreamFull
public StreamFull xInfoStream(String key, boolean full, long count)
StreamCommands
key
- Keyfull
- Fullcount
- 返回数量StreamFull
public Long xLen(String key)
StreamCommands
key
- Keypublic Long xLen(byte[] key)
StreamCommands
key
- Keypublic StreamPendingSummary xPending(String key, String groupName)
StreamCommands
key
- KeygroupName
- Group NameStreamPendingSummary
public List<StreamPending> xPending(String key, String groupName, long minIdleTime)
StreamCommands
key
- KeygroupName
- Group NameminIdleTime
- Min Idle TimeStreamPending
列表public List<StreamPending> xPending(String key, String groupName, StreamEntryId start, StreamEntryId end, long count)
StreamCommands
key
- KeygroupName
- Group Namestart
- Start Idend
- End Idcount
- 返回数量StreamPending
列表public List<StreamPending> xPending(String key, String groupName, String consumerName)
StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameStreamPending
列表public List<StreamPending> xPending(String key, String groupName, long minIdleTime, StreamEntryId start, StreamEntryId end, long count)
StreamCommands
key
- KeygroupName
- Group NameminIdleTime
- Min Idle Timestart
- Start Idend
- End Idcount
- 返回数量StreamPending
列表public List<StreamPending> xPending(String key, String groupName, long minIdleTime, String consumerName)
StreamCommands
key
- KeygroupName
- Group NameminIdleTime
- Min Idle TimeconsumerName
- Consumer NameStreamPending
列表public List<StreamPending> xPending(String key, String groupName, StreamEntryId start, StreamEntryId end, long count, String consumerName)
StreamCommands
key
- KeygroupName
- Group Namestart
- Start Idend
- End Idcount
- 返回数量consumerName
- Consumer NameStreamPending
列表public List<StreamPending> xPending(String key, String groupName, long minIdleTime, StreamEntryId start, StreamEntryId end, long count, String consumerName)
StreamCommands
key
- KeygroupName
- Group NameminIdleTime
- Min Idle Timestart
- Start Idend
- End Idcount
- 返回数量consumerName
- Consumer NameStreamPending
列表public List<StreamEntry> xRange(String key, StreamEntryId start, StreamEntryId end)
StreamCommands
key
- Keystart
- Start Idend
- End IdStreamEntry
列表public List<StreamEntry> xRange(String key, StreamEntryId start, StreamEntryId end, long count)
StreamCommands
key
- Keystart
- Start Idend
- End Idcount
- 返回数量StreamEntry
列表public List<Map<String,List<StreamEntry>>> xRead(Map<String,StreamEntryId> streams)
StreamCommands
streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xRead(long count, Map<String,StreamEntryId> streams)
StreamCommands
count
- 返回数量streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xRead(int block, Map<String,StreamEntryId> streams)
StreamCommands
block
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xRead(long count, int block, Map<String,StreamEntryId> streams)
StreamCommands
count
- 返回数量block
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, Map<String,StreamEntryId> streams)
StreamCommands
groupName
- Group NameconsumerName
- Consumer Namestreams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, long count, Map<String,StreamEntryId> streams)
StreamCommands
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, int block, Map<String,StreamEntryId> streams)
StreamCommands
groupName
- Group NameconsumerName
- Consumer Nameblock
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, boolean isNoAck, Map<String,StreamEntryId> streams)
StreamCommands
groupName
- Group NameconsumerName
- Consumer NameisNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, long count, int block, Map<String,StreamEntryId> streams)
StreamCommands
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量block
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, long count, boolean isNoAck, Map<String,StreamEntryId> streams)
StreamCommands
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, int block, boolean isNoAck, Map<String,StreamEntryId> streams)
StreamCommands
groupName
- Group NameconsumerName
- Consumer Nameblock
- 阻塞时间(单位:毫秒)isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<String,List<StreamEntry>>> xReadGroup(String groupName, String consumerName, long count, int block, boolean isNoAck, Map<String,StreamEntryId> streams)
StreamCommands
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量block
- 阻塞时间(单位:毫秒)isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表public List<StreamEntry> xRevRange(String key, StreamEntryId end, StreamEntryId start)
StreamCommands
key
- Keyend
- End Idstart
- Start IdStreamEntry
列表public List<StreamEntry> xRevRange(String key, StreamEntryId end, StreamEntryId start, long count)
StreamCommands
key
- Keyend
- End Idstart
- Start Idcount
- 返回数量StreamEntry
列表public Long xTrim(String key, StreamCommands.XTrimArgument xTrimArgument)
StreamCommands
key
- KeyxTrimArgument
- StreamCommands.XTrimArgument
public Long xTrim(byte[] key, StreamCommands.XTrimArgument xTrimArgument)
StreamCommands
key
- KeyxTrimArgument
- StreamCommands.XTrimArgument
public Long xTrim(String key, StreamCommands.XTrimArgument xTrimArgument, long limit)
StreamCommands
key
- KeyxTrimArgument
- StreamCommands.XTrimArgument
limit
- Limitpublic Long xTrim(byte[] key, StreamCommands.XTrimArgument xTrimArgument, long limit)
StreamCommands
key
- KeyxTrimArgument
- StreamCommands.XTrimArgument
limit
- LimitCopyright © 2023 buession.com Inc.. All rights reserved.