public interface StreamPipelineCommands
| Modifier and Type | Method and Description |
|---|---|
Response<Long> |
xack(String key,
String group,
StreamEntryID... ids)
XACK key group ID [ID ...]
|
default Response<StreamEntryID> |
xadd(String key,
Map<String,String> hash,
XAddParams params)
XADD key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|ID field value [field value ...]
|
Response<StreamEntryID> |
xadd(String key,
StreamEntryID id,
Map<String,String> hash)
XADD key ID field string [field string ...]
|
Response<StreamEntryID> |
xadd(String key,
XAddParams params,
Map<String,String> hash) |
Response<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]
|
Response<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
|
Response<List<StreamEntry>> |
xclaim(String key,
String group,
String consumerName,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids)
{@code XCLAIM key group consumer min-idle-time
|
Response<List<StreamEntryID>> |
xclaimJustId(String key,
String group,
String consumerName,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids)
{@code XCLAIM key group consumer min-idle-time
|
Response<Long> |
xdel(String key,
StreamEntryID... ids)
XDEL key ID [ID ...]
|
Response<String> |
xgroupCreate(String key,
String groupName,
StreamEntryID id,
boolean makeStream)
XGROUP CREATE key groupName <id or $> |
Response<Boolean> |
xgroupCreateConsumer(String key,
String groupName,
String consumerName)
XGROUP CREATECONSUMER key groupName consumerName
|
Response<Long> |
xgroupDelConsumer(String key,
String groupName,
String consumerName)
XGROUP DELCONSUMER key groupName consumerName
|
Response<Long> |
xgroupDestroy(String key,
String groupName)
XGROUP DESTROY key groupName
|
Response<String> |
xgroupSetID(String key,
String groupName,
StreamEntryID id)
XGROUP SETID key groupName <id or $> |
Response<List<StreamConsumersInfo>> |
xinfoConsumers(String key,
String group)
Deprecated.
|
Response<List<StreamConsumerInfo>> |
xinfoConsumers2(String key,
String group)
Introspection command used in order to retrieve different information about consumers in the group
|
Response<List<StreamGroupInfo>> |
xinfoGroups(String key)
Introspection command used in order to retrieve different information about groups in the stream
|
Response<StreamInfo> |
xinfoStream(String key)
Introspection command used in order to retrieve different information about the stream
|
Response<StreamFullInfo> |
xinfoStreamFull(String key)
Introspection command used in order to retrieve all information about the stream
|
Response<StreamFullInfo> |
xinfoStreamFull(String key,
int count)
Introspection command used in order to retrieve all information about the stream
|
Response<Long> |
xlen(String key)
XLEN key
|
Response<StreamPendingSummary> |
xpending(String key,
String groupName)
XPENDING key group
|
Response<List<StreamPendingEntry>> |
xpending(String key,
String groupName,
XPendingParams params)
XPENDING key group [[IDLE min-idle-time] start end count [consumer]]
|
Response<List<StreamEntry>> |
xrange(String key,
StreamEntryID start,
StreamEntryID end)
XRANGE key start end
|
Response<List<StreamEntry>> |
xrange(String key,
StreamEntryID start,
StreamEntryID end,
int count)
XRANGE key start end COUNT count
|
Response<List<StreamEntry>> |
xrange(String key,
String start,
String end) |
Response<List<StreamEntry>> |
xrange(String key,
String start,
String end,
int count) |
Response<List<Map.Entry<String,List<StreamEntry>>>> |
xread(XReadParams xReadParams,
Map<String,StreamEntryID> streams)
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]
|
Response<Map<String,List<StreamEntry>>> |
xreadAsMap(XReadParams xReadParams,
Map<String,StreamEntryID> streams)
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]
|
Response<List<Map.Entry<String,List<StreamEntry>>>> |
xreadGroup(String groupName,
String consumer,
XReadGroupParams xReadGroupParams,
Map<String,StreamEntryID> streams)
XREADGROUP GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] id [id ...]
|
Response<Map<String,List<StreamEntry>>> |
xreadGroupAsMap(String groupName,
String consumer,
XReadGroupParams xReadGroupParams,
Map<String,StreamEntryID> streams)
XREADGROUP GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] id [id ...]
|
Response<List<StreamEntry>> |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start)
XREVRANGE key end start
|
Response<List<StreamEntry>> |
xrevrange(String key,
StreamEntryID end,
StreamEntryID start,
int count)
XREVRANGE key end start COUNT count
|
Response<List<StreamEntry>> |
xrevrange(String key,
String end,
String start) |
Response<List<StreamEntry>> |
xrevrange(String key,
String end,
String start,
int count) |
Response<Long> |
xtrim(String key,
long maxLen,
boolean approximate)
XTRIM key MAXLEN [~] count
|
Response<Long> |
xtrim(String key,
XTrimParams params)
XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count]
|
Response<StreamEntryID> xadd(String key, StreamEntryID id, Map<String,String> hash)
default Response<StreamEntryID> xadd(String key, Map<String,String> hash, XAddParams params)
Response<StreamEntryID> xadd(String key, XAddParams params, Map<String,String> hash)
Response<List<StreamEntry>> xrange(String key, StreamEntryID start, StreamEntryID end)
key - keystart - 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 streamResponse<List<StreamEntry>> xrange(String key, StreamEntryID start, StreamEntryID end, int count)
key - keystart - 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 returnedResponse<List<StreamEntry>> xrevrange(String key, StreamEntryID end, StreamEntryID start)
key - keystart - 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 streamResponse<List<StreamEntry>> xrevrange(String key, StreamEntryID end, StreamEntryID start, int count)
key - keystart - 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.Response<Long> xack(String key, String group, StreamEntryID... ids)
Response<String> xgroupCreate(String key, String groupName, StreamEntryID id, boolean makeStream)
XGROUP CREATE key groupName <id or $>Response<String> xgroupSetID(String key, String groupName, StreamEntryID id)
XGROUP SETID key groupName <id or $>Response<Long> xgroupDestroy(String key, String groupName)
Response<Boolean> xgroupCreateConsumer(String key, String groupName, String consumerName)
Response<Long> xgroupDelConsumer(String key, String groupName, String consumerName)
Response<StreamPendingSummary> xpending(String key, String groupName)
Response<List<StreamPendingEntry>> xpending(String key, String groupName, XPendingParams params)
Response<Long> xdel(String key, StreamEntryID... ids)
Response<Long> xtrim(String key, XTrimParams params)
Response<List<StreamEntry>> xclaim(String key, String group, String consumerName, long minIdleTime, XClaimParams params, StreamEntryID... ids)
XCLAIM key group consumer min-idle-time <ID-1> ... <ID-N>
[IDLE <milliseconds>] [TIME <mstime>] [RETRYCOUNT <count>]
[FORCE]Response<List<StreamEntryID>> xclaimJustId(String key, String group, String consumerName, long minIdleTime, XClaimParams params, StreamEntryID... ids)
XCLAIM key group consumer min-idle-time <ID-1> ... <ID-N>
[IDLE <milliseconds>] [TIME <mstime>] [RETRYCOUNT <count>]
[FORCE] JUSTIDResponse<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 - XAutoClaimParamsResponse<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 - XAutoClaimParamsResponse<StreamInfo> xinfoStream(String key)
key - Stream nameStreamInfo that contains information about the streamResponse<StreamFullInfo> xinfoStreamFull(String key)
key - Stream nameStreamFullInfo that contains information about the streamResponse<StreamFullInfo> xinfoStreamFull(String key, int count)
key - Stream namecount - stream info countStreamFullInfo that contains information about the streamResponse<List<StreamGroupInfo>> xinfoGroups(String key)
key - Stream nameStreamGroupInfo containing information about groups@Deprecated Response<List<StreamConsumersInfo>> xinfoConsumers(String key, String group)
xinfoConsumers2(java.lang.String, java.lang.String).key - Stream namegroup - Group nameStreamConsumersInfo containing information about consumers that belong
to the groupResponse<List<StreamConsumerInfo>> xinfoConsumers2(String key, String group)
key - Stream namegroup - Group nameStreamConsumerInfo containing information about consumers that belong
to the groupResponse<List<Map.Entry<String,List<StreamEntry>>>> xread(XReadParams xReadParams, Map<String,StreamEntryID> streams)
Response<Map<String,List<StreamEntry>>> xreadAsMap(XReadParams xReadParams, Map<String,StreamEntryID> streams)
Response<List<Map.Entry<String,List<StreamEntry>>>> xreadGroup(String groupName, String consumer, XReadGroupParams xReadGroupParams, Map<String,StreamEntryID> streams)
Response<Map<String,List<StreamEntry>>> xreadGroupAsMap(String groupName, String consumer, XReadGroupParams xReadGroupParams, Map<String,StreamEntryID> streams)
Copyright © 2024. All rights reserved.