C
- Redis Client JedisRedisClient
public abstract class AbstractStreamOperations<C extends JedisRedisClient> extends AbstractJedisRedisOperations<C> implements StreamOperations
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
构造器和说明 |
---|
AbstractStreamOperations(C client) |
限定符和类型 | 方法和说明 |
---|---|
protected static List<Map<byte[],List<StreamEntry>>> |
afterBianryXReadGroup(List<Map<String,List<StreamEntry>>> data) |
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/
|
StreamEntryId |
xAdd(byte[] key,
StreamEntryId id,
Map<byte[],byte[]> hash)
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<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/
|
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<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/
|
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/
|
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 |
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/
|
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<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/
|
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/
|
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/
|
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<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<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/
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
xAck, xAdd, xAdd, xAdd, xAutoClaim, xAutoClaim, xAutoClaimJustId, xAutoClaimJustId, xClaim, xClaim, xClaimJustId, xClaimJustId, xDel, xGroupCreate, xGroupCreateConsumer, xGroupCreateConsumer, xGroupDelConsumer, xGroupDelConsumer, xGroupDestroy, xGroupDestroy, xGroupSetId, xInfoConsumers, xInfoGroups, xInfoStream, xInfoStream, xInfoStream, xLen, xLen, xPending, xPending, xPending, xPending, xPending, xPending, xPending, xPending, xRange, xRange, xRead, xRead, xRead, xRead, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xReadGroup, xRevRange, xRevRange, xTrim, xTrim, xTrim, xTrim
public AbstractStreamOperations(C client)
public Long xAck(byte[] key, byte[] groupName, StreamEntryId... ids)
StreamCommands
xAck
在接口中 StreamCommands
key
- KeygroupName
- Group Nameids
- 一个或多个 IDpublic StreamEntryId xAdd(byte[] key, StreamEntryId id, Map<byte[],byte[]> hash)
StreamCommands
xAdd
在接口中 StreamCommands
key
- Keyid
- Idhash
- HashStreamEntryId
public Map<StreamEntryId,List<StreamEntry>> xAutoClaim(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId start, long count)
StreamCommands
xAutoClaim
在接口中 StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thancount
- 数量StreamEntryId
和对应的 StreamEntry
public Map<StreamEntryId,List<StreamEntry>> xAutoClaim(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId start)
StreamCommands
xAutoClaim
在接口中 StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thanStreamEntryId
和对应的 StreamEntry
public Map<StreamEntryId,List<StreamEntryId>> xAutoClaimJustId(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId start)
StreamCommands
xAutoClaimJustId
在接口中 StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thanStreamEntryId
和对应的 StreamEntryId
public Map<StreamEntryId,List<StreamEntryId>> xAutoClaimJustId(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId start, long count)
StreamCommands
xAutoClaimJustId
在接口中 StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timestart
- greater ID thancount
- 数量StreamEntryId
和对应的 StreamEntryId
public List<StreamEntry> xClaim(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId... ids)
StreamCommands
xClaim
在接口中 StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDStreamEntry
列表public List<StreamEntry> xClaim(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId[] ids, StreamCommands.XClaimArgument xClaimArgument)
StreamCommands
xClaim
在接口中 StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDxClaimArgument
- StreamCommands.XClaimArgument
StreamEntry
列表public List<StreamEntryId> xClaimJustId(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId... ids)
StreamCommands
xClaimJustId
在接口中 StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDStreamEntryId
列表public List<StreamEntryId> xClaimJustId(byte[] key, byte[] groupName, byte[] consumerName, int minIdleTime, StreamEntryId[] ids, StreamCommands.XClaimArgument xClaimArgument)
StreamCommands
xClaimJustId
在接口中 StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameminIdleTime
- Min Idle Timeids
- 一个或多个 IDxClaimArgument
- StreamCommands.XClaimArgument
StreamEntryId
列表public Long xDel(byte[] key, StreamEntryId... ids)
StreamCommands
xDel
在接口中 StreamCommands
key
- Keyids
- 一个或多个 IDpublic com.buession.lang.Status xGroupCreate(byte[] key, byte[] groupName, StreamEntryId id, boolean makeStream)
StreamCommands
xGroupCreate
在接口中 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 xGroupSetId(byte[] key, byte[] groupName, StreamEntryId id)
StreamCommands
xGroupSetId
在接口中 StreamCommands
key
- KeygroupName
- Group Nameid
- IDpublic List<StreamConsumer> xInfoConsumers(byte[] key, byte[] groupName)
StreamCommands
xInfoConsumers
在接口中 StreamCommands
key
- KeygroupName
- Group NameStreamConsumer
列表public List<StreamGroup> xInfoGroups(byte[] key)
StreamCommands
xInfoGroups
在接口中 StreamCommands
key
- KeyStreamGroup
列表public Stream xInfoStream(byte[] key)
StreamCommands
xInfoStream
在接口中 StreamCommands
key
- KeyStream
public StreamFull xInfoStream(byte[] key, boolean full)
StreamCommands
xInfoStream
在接口中 StreamCommands
key
- Keyfull
- FullStreamFull
public StreamFull xInfoStream(byte[] key, boolean full, long count)
StreamCommands
xInfoStream
在接口中 StreamCommands
key
- Keyfull
- Fullcount
- 返回数量StreamFull
public StreamPendingSummary xPending(byte[] key, byte[] groupName)
StreamCommands
xPending
在接口中 StreamCommands
key
- KeygroupName
- Group NameStreamPendingSummary
public List<StreamPending> xPending(byte[] key, byte[] groupName, long minIdleTime)
StreamCommands
xPending
在接口中 StreamCommands
key
- KeygroupName
- Group NameminIdleTime
- Min Idle TimeStreamPending
列表public List<StreamPending> xPending(byte[] key, byte[] groupName, StreamEntryId start, StreamEntryId end, long count)
StreamCommands
xPending
在接口中 StreamCommands
key
- KeygroupName
- Group Namestart
- Start Idend
- End Idcount
- 返回数量StreamPending
列表public List<StreamPending> xPending(byte[] key, byte[] groupName, byte[] consumerName)
StreamCommands
xPending
在接口中 StreamCommands
key
- KeygroupName
- Group NameconsumerName
- Consumer NameStreamPending
列表public List<StreamPending> xPending(byte[] key, byte[] groupName, long minIdleTime, StreamEntryId start, StreamEntryId end, long count)
StreamCommands
xPending
在接口中 StreamCommands
key
- KeygroupName
- Group NameminIdleTime
- Min Idle Timestart
- Start Idend
- End Idcount
- 返回数量StreamPending
列表public List<StreamPending> xPending(byte[] key, byte[] groupName, long minIdleTime, byte[] consumerName)
StreamCommands
xPending
在接口中 StreamCommands
key
- KeygroupName
- Group NameminIdleTime
- Min Idle TimeconsumerName
- Consumer NameStreamPending
列表public List<StreamPending> xPending(byte[] key, byte[] groupName, StreamEntryId start, StreamEntryId end, long count, byte[] consumerName)
StreamCommands
xPending
在接口中 StreamCommands
key
- KeygroupName
- Group Namestart
- Start Idend
- End Idcount
- 返回数量consumerName
- Consumer NameStreamPending
列表public List<StreamPending> xPending(byte[] key, byte[] groupName, long minIdleTime, StreamEntryId start, StreamEntryId end, long count, byte[] consumerName)
StreamCommands
xPending
在接口中 StreamCommands
key
- KeygroupName
- Group NameminIdleTime
- Min Idle Timestart
- Start Idend
- End Idcount
- 返回数量consumerName
- Consumer NameStreamPending
列表public List<StreamEntry> xRange(byte[] key, StreamEntryId start, StreamEntryId end)
StreamCommands
xRange
在接口中 StreamCommands
key
- Keystart
- Start Idend
- End IdStreamEntry
列表public List<StreamEntry> xRange(byte[] key, StreamEntryId start, StreamEntryId end, long count)
StreamCommands
xRange
在接口中 StreamCommands
key
- Keystart
- Start Idend
- End Idcount
- 返回数量StreamEntry
列表public List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, Map<byte[],StreamEntryId> streams)
StreamCommands
xReadGroup
在接口中 StreamCommands
groupName
- Group NameconsumerName
- Consumer Namestreams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, long count, Map<byte[],StreamEntryId> streams)
StreamCommands
xReadGroup
在接口中 StreamCommands
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, int block, Map<byte[],StreamEntryId> streams)
StreamCommands
xReadGroup
在接口中 StreamCommands
groupName
- Group NameconsumerName
- Consumer Nameblock
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, boolean isNoAck, Map<byte[],StreamEntryId> streams)
StreamCommands
xReadGroup
在接口中 StreamCommands
groupName
- Group NameconsumerName
- Consumer NameisNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, long count, int block, Map<byte[],StreamEntryId> streams)
StreamCommands
xReadGroup
在接口中 StreamCommands
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量block
- 阻塞时间(单位:毫秒)streams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, long count, boolean isNoAck, Map<byte[],StreamEntryId> streams)
StreamCommands
xReadGroup
在接口中 StreamCommands
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, int block, boolean isNoAck, Map<byte[],StreamEntryId> streams)
StreamCommands
xReadGroup
在接口中 StreamCommands
groupName
- Group NameconsumerName
- Consumer Nameblock
- 阻塞时间(单位:毫秒)isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表public List<Map<byte[],List<StreamEntry>>> xReadGroup(byte[] groupName, byte[] consumerName, long count, int block, boolean isNoAck, Map<byte[],StreamEntryId> streams)
StreamCommands
xReadGroup
在接口中 StreamCommands
groupName
- Group NameconsumerName
- Consumer Namecount
- 返回数量block
- 阻塞时间(单位:毫秒)isNoAck
- No Ackstreams
- key => StreamEntryId StreamsStreamEntry
列表public List<StreamEntry> xRevRange(byte[] key, StreamEntryId end, StreamEntryId start)
StreamCommands
xRevRange
在接口中 StreamCommands
key
- Keyend
- End Idstart
- Start IdStreamEntry
列表public List<StreamEntry> xRevRange(byte[] key, StreamEntryId end, StreamEntryId start, long count)
StreamCommands
xRevRange
在接口中 StreamCommands
key
- Keyend
- End Idstart
- Start Idcount
- 返回数量StreamEntry
列表protected static List<Map<byte[],List<StreamEntry>>> afterBianryXReadGroup(List<Map<String,List<StreamEntry>>> data)
Copyright © 2023 buession.com Inc.. All rights reserved.