public interface StreamCommands
Modifier and Type | Method and Description |
---|---|
long |
xack(String key,
String group,
StreamEntryID... ids)
XACK key group ID [ID ...]
|
default StreamEntryID |
xadd(String key,
Map<String,String> hash,
XAddParams params)
XADD key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|ID field value [field value ...]
|
StreamEntryID |
xadd(String key,
StreamEntryID id,
Map<String,String> hash)
XADD key ID field string [field string ...]
|
StreamEntryID |
xadd(String key,
XAddParams params,
Map<String,String> hash) |
Map.Entry<StreamEntryID,List<StreamEntry>> |
xautoclaim(String key,
String group,
String consumerName,
long minIdleTime,
StreamEntryID start,
XAutoClaimParams params)
XAUTOCLAIM key group consumer min-idle-time start [COUNT count]
|
Map.Entry<StreamEntryID,List<StreamEntryID>> |
xautoclaimJustId(String key,
String group,
String consumerName,
long minIdleTime,
StreamEntryID start,
XAutoClaimParams params)
XAUTOCLAIM key group consumer min-idle-time start [COUNT count] JUSTID
|
List<StreamEntry> |
xclaim(String key,
String group,
String consumerName,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids)
XCLAIM
|
List<StreamEntryID> |
xclaimJustId(String key,
String group,
String consumerName,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids)
XCLAIM
|
long |
xdel(String key,
StreamEntryID... ids)
XDEL key ID [ID ...]
|
String |
xgroupCreate(String key,
String groupName,
StreamEntryID id,
boolean makeStream)
XGROUP CREATE
|
boolean |
xgroupCreateConsumer(String key,
String groupName,
String consumerName)
XGROUP CREATECONSUMER
|
long |
xgroupDelConsumer(String key,
String groupName,
String consumerName)
XGROUP DELCONSUMER
|
long |
xgroupDestroy(String key,
String groupName)
XGROUP DESTROY
|
String |
xgroupSetID(String key,
String groupName,
StreamEntryID id)
XGROUP SETID
|
List<StreamConsumersInfo> |
xinfoConsumers(String key,
String group)
Introspection command used in order to retrieve different information about consumers in the group
|
List<StreamGroupInfo> |
xinfoGroup(String key)
Deprecated.
|
List<StreamGroupInfo> |
xinfoGroups(String key)
Introspection command used in order to retrieve different information about groups in the stream
|
StreamInfo |
xinfoStream(String key)
Introspection command used in order to retrieve different information about the stream
|
StreamFullInfo |
xinfoStreamFull(String key)
Introspection command used in order to retrieve all information about the stream
|
StreamFullInfo |
xinfoStreamFull(String key,
int count)
Introspection command used in order to retrieve all information about the stream
|
long |
xlen(String key)
XLEN key
|
StreamPendingSummary |
xpending(String key,
String groupName)
XPENDING key group
|
List<StreamPendingEntry> |
xpending(String key,
String groupName,
StreamEntryID start,
StreamEntryID end,
int count,
String consumerName)
|
List<StreamPendingEntry> |
xpending(String key,
String groupName,
XPendingParams params)
XPENDING key group [[IDLE min-idle-time] start end count [consumer]]
|
List<StreamEntry> |
xrange(String key,
StreamEntryID start,
StreamEntryID end)
XRANGE key start end
|
List<StreamEntry> |
xrange(String key,
StreamEntryID start,
StreamEntryID end,
int count)
XRANGE key start end COUNT count
|
List<StreamEntry> |
xrange(String key,
String start,
String end) |
List<StreamEntry> |
xrange(String key,
String start,
String end,
int count) |
List<Map.Entry<String,List<StreamEntry>>> |
xread(XReadParams xReadParams,
Map<String,StreamEntryID> streams)
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]
|
List<Map.Entry<String,List<StreamEntry>>> |
xreadGroup(String groupName,
String consumer,
XReadGroupParams xReadGroupParams,
Map<String,StreamEntryID> streams)
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]
|
List<StreamEntry> |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start)
XREVRANGE key end start
|
List<StreamEntry> |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start,
int count)
XREVRANGE key end start COUNT count
|
List<StreamEntry> |
xrevrange(String key,
String end,
String start) |
List<StreamEntry> |
xrevrange(String key,
String end,
String start,
int count) |
long |
xtrim(String key,
long maxLen,
boolean approximate)
XTRIM key MAXLEN [~] count
|
long |
xtrim(String key,
XTrimParams params)
XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count]
|
StreamEntryID xadd(String key, StreamEntryID id, Map<String,String> hash)
key
- id
- hash
- default StreamEntryID xadd(String key, Map<String,String> hash, XAddParams params)
key
- hash
- params
- StreamEntryID xadd(String key, XAddParams params, Map<String,String> hash)
long xlen(String key)
key
- List<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end)
key
- start
- minimum StreamEntryID
for the retrieved range, passing null
will indicate minimum ID possible in the streamend
- maximum StreamEntryID
for the retrieved range, passing null
will indicate maximum ID possible in the streamList<StreamEntry> xrange(String key, StreamEntryID start, StreamEntryID end, int count)
key
- start
- minimum StreamEntryID
for the retrieved range, passing null
will indicate minimum ID possible in the streamend
- maximum StreamEntryID
for the retrieved range, passing null
will indicate maximum ID possible in the streamcount
- maximum number of entries returnedList<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start)
key
- start
- minimum StreamEntryID
for the retrieved range, passing null
will indicate minimum ID possible in the streamend
- maximum StreamEntryID
for the retrieved range, passing null
will indicate maximum ID possible in the streamList<StreamEntry> xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)
key
- start
- minimum StreamEntryID
for the retrieved range, passing null
will indicate minimum ID possible in the streamend
- maximum StreamEntryID
for the retrieved range, passing null
will indicate maximum ID possible in the streamcount
- The entries with IDs matching the specified range.List<StreamEntry> xrange(String key, String start, String end)
List<StreamEntry> xrange(String key, String start, String end, int count)
List<StreamEntry> xrevrange(String key, String end, String start)
List<StreamEntry> xrevrange(String key, String end, String start, int count)
long xack(String key, String group, StreamEntryID... ids)
key
- group
- ids
- String xgroupCreate(String key, String groupName, StreamEntryID id, boolean makeStream)
key
- groupName
- id
- makeStream
- String xgroupSetID(String key, String groupName, StreamEntryID id)
key
- groupName
- id
- long xgroupDestroy(String key, String groupName)
key
- groupName
- boolean xgroupCreateConsumer(String key, String groupName, String consumerName)
key
- groupName
- consumerName
- long xgroupDelConsumer(String key, String groupName, String consumerName)
key
- groupName
- consumerName
- StreamPendingSummary xpending(String key, String groupName)
key
- groupName
- @Deprecated List<StreamPendingEntry> xpending(String key, String groupName, StreamEntryID start, StreamEntryID end, int count, String consumerName)
xpending(java.lang.String, java.lang.String, redis.clients.jedis.params.XPendingParams)
.key
- groupName
- start
- end
- count
- consumerName
- List<StreamPendingEntry> xpending(String key, String groupName, XPendingParams params)
key
- groupName
- params
- long xdel(String key, StreamEntryID... ids)
key
- ids
- long xtrim(String key, long maxLen, boolean approximate)
key
- maxLen
- approximate
- long xtrim(String key, XTrimParams params)
key
- params
- List<StreamEntry> xclaim(String key, String group, String consumerName, long minIdleTime, XClaimParams params, StreamEntryID... ids)
List<StreamEntryID> xclaimJustId(String key, String group, String consumerName, long minIdleTime, XClaimParams params, StreamEntryID... ids)
Map.Entry<StreamEntryID,List<StreamEntry>> xautoclaim(String key, String group, String consumerName, long minIdleTime, StreamEntryID start, XAutoClaimParams params)
key
- Stream Keygroup
- Consumer GroupconsumerName
- Consumer name to transfer the auto claimed entriesminIdleTime
- Entries pending more than minIdleTime will be transferred ownershipstart
- StreamEntryID
- Entries >= start will be transferred ownership, passing null
will indicate '-'params
- XAutoClaimParams
Map.Entry<StreamEntryID,List<StreamEntryID>> xautoclaimJustId(String key, String group, String consumerName, long minIdleTime, StreamEntryID start, XAutoClaimParams params)
key
- Stream Keygroup
- Consumer GroupconsumerName
- Consumer name to transfer the auto claimed entriesminIdleTime
- Entries pending more than minIdleTime will be transferred ownershipstart
- StreamEntryID
- Entries >= start will be transferred ownership, passing null
will indicate '-'params
- XAutoClaimParams
StreamInfo xinfoStream(String key)
key
- Stream nameStreamInfo
that contains information about the streamStreamFullInfo xinfoStreamFull(String key)
key
- Stream nameStreamFullInfo
that contains information about the streamStreamFullInfo xinfoStreamFull(String key, int count)
key
- Stream namecount
- stream info countStreamFullInfo
that contains information about the stream@Deprecated List<StreamGroupInfo> xinfoGroup(String key)
xinfoGroups(java.lang.String)
.List<StreamGroupInfo> xinfoGroups(String key)
key
- Stream nameStreamGroupInfo
containing information about groupsList<StreamConsumersInfo> xinfoConsumers(String key, String group)
key
- Stream namegroup
- Group nameStreamConsumersInfo
containing information about consumers that belong
to the the groupList<Map.Entry<String,List<StreamEntry>>> xread(XReadParams xReadParams, Map<String,StreamEntryID> streams)
xReadParams
- streams
- List<Map.Entry<String,List<StreamEntry>>> xreadGroup(String groupName, String consumer, XReadGroupParams xReadGroupParams, Map<String,StreamEntryID> streams)
groupName
- consumer
- xReadGroupParams
- streams
- Copyright © 2022. All rights reserved.