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)
XCLAIM
|
Response<List<StreamEntryID>> |
xclaimJustId(String key,
String group,
String consumerName,
long minIdleTime,
XClaimParams params,
StreamEntryID... ids)
XCLAIM
|
Response<Long> |
xdel(String key,
StreamEntryID... ids)
XDEL key ID [ID ...]
|
Response<String> |
xgroupCreate(String key,
String groupName,
StreamEntryID id,
boolean makeStream)
XGROUP CREATE
|
Response<Boolean> |
xgroupCreateConsumer(String key,
String groupName,
String consumerName)
XGROUP CREATECONSUMER
|
Response<Long> |
xgroupDelConsumer(String key,
String groupName,
String consumerName)
XGROUP DELCONSUMER
|
Response<Long> |
xgroupDestroy(String key,
String groupName)
XGROUP DESTROY
|
Response<String> |
xgroupSetID(String key,
String groupName,
StreamEntryID id)
XGROUP SETID
|
Response<List<StreamConsumersInfo>> |
xinfoConsumers(String key,
String group)
Introspection command used in order to retrieve different information about consumers in the group
|
Response<List<StreamGroupInfo>> |
xinfoGroup(String key)
Deprecated.
|
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,
StreamEntryID start,
StreamEntryID end,
int count,
String consumerName)
|
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<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 ...]
|
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)
key - id - hash - default Response<StreamEntryID> xadd(String key, Map<String,String> hash, XAddParams params)
key - hash - params - Response<StreamEntryID> xadd(String key, XAddParams params, Map<String,String> hash)
Response<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 streamResponse<List<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 returnedResponse<List<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 streamResponse<List<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.Response<Long> xack(String key, String group, StreamEntryID... ids)
key - group - ids - Response<String> xgroupCreate(String key, String groupName, StreamEntryID id, boolean makeStream)
key - groupName - id - makeStream - Response<String> xgroupSetID(String key, String groupName, StreamEntryID id)
key - groupName - id - Response<Long> xgroupDestroy(String key, String groupName)
key - groupName - Response<Boolean> xgroupCreateConsumer(String key, String groupName, String consumerName)
key - groupName - consumerName - Response<Long> xgroupDelConsumer(String key, String groupName, String consumerName)
key - groupName - consumerName - Response<StreamPendingSummary> xpending(String key, String groupName)
key - groupName - @Deprecated Response<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 - Response<List<StreamPendingEntry>> xpending(String key, String groupName, XPendingParams params)
key - groupName - params - Response<Long> xdel(String key, StreamEntryID... ids)
key - ids - Response<Long> xtrim(String key, long maxLen, boolean approximate)
key - maxLen - approximate - Response<Long> xtrim(String key, XTrimParams params)
key - params - Response<List<StreamEntry>> xclaim(String key, String group, String consumerName, long minIdleTime, XClaimParams params, StreamEntryID... ids)
Response<List<StreamEntryID>> xclaimJustId(String key, String group, String consumerName, long minIdleTime, XClaimParams params, StreamEntryID... ids)
Response<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 stream@Deprecated Response<List<StreamGroupInfo>> xinfoGroup(String key)
xinfoGroups(java.lang.String).Response<List<StreamGroupInfo>> xinfoGroups(String key)
key - Stream nameStreamGroupInfo containing information about groupsResponse<List<StreamConsumersInfo>> xinfoConsumers(String key, String group)
key - Stream namegroup - Group nameStreamConsumersInfo containing information about consumers that belong
to the the groupResponse<List<Map.Entry<String,List<StreamEntry>>>> xread(XReadParams xReadParams, Map<String,StreamEntryID> streams)
xReadParams - streams - Response<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.