Package redis.clients.jedis.commands
Interface StreamPipelineCommands
- All Known Subinterfaces:
PipelineCommands
- All Known Implementing Classes:
ClusterPipeline,MultiNodePipelineBase,Pipeline,ReliableTransaction,ShardedPipeline,Transaction,TransactionBase
public interface StreamPipelineCommands
-
Method Summary
Modifier and TypeMethodDescriptionxack(String key, String group, StreamEntryID... ids) XACK key group ID [ID ...]default Response<StreamEntryID> XADD key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|ID field value [field value ...]XADD key ID field string [field string ...]xautoclaim(String key, String group, String consumerName, long minIdleTime, StreamEntryID start, XAutoClaimParams params) XAUTOCLAIM key group consumer min-idle-time start [COUNT count]xautoclaimJustId(String key, String group, String consumerName, long minIdleTime, StreamEntryID start, XAutoClaimParams params) XAUTOCLAIM key group consumer min-idle-time start [COUNT count] JUSTIDxclaim(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]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] JUSTIDxdel(String key, StreamEntryID... ids) XDEL key ID [ID ...]xgroupCreate(String key, String groupName, StreamEntryID id, boolean makeStream) XGROUP CREATE key groupName <id or $>xgroupCreateConsumer(String key, String groupName, String consumerName) XGROUP CREATECONSUMER key groupName consumerNamexgroupDelConsumer(String key, String groupName, String consumerName) XGROUP DELCONSUMER key groupName consumerNamexgroupDestroy(String key, String groupName) XGROUP DESTROY key groupNamexgroupSetID(String key, String groupName, StreamEntryID id) XGROUP SETID key groupName <id or $>xinfoConsumers(String key, String group) Introspection command used in order to retrieve different information about consumers in the groupxinfoGroup(String key) Deprecated.xinfoGroups(String key) Introspection command used in order to retrieve different information about groups in the streamxinfoStream(String key) Introspection command used in order to retrieve different information about the streamxinfoStreamFull(String key) Introspection command used in order to retrieve all information about the streamxinfoStreamFull(String key, int count) Introspection command used in order to retrieve all information about the streamXLEN keyXPENDING key groupxpending(String key, String groupName, XPendingParams params) XPENDING key group [[IDLE min-idle-time] start end count [consumer]]xpending(String key, String groupName, StreamEntryID start, StreamEntryID end, int count, String consumerName) xrange(String key, StreamEntryID start, StreamEntryID end) XRANGE key start endxrange(String key, StreamEntryID start, StreamEntryID end, int count) XRANGE key start end COUNT countxread(XReadParams xReadParams, Map<String, StreamEntryID> streams) XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]xreadGroup(String groupName, String consumer, XReadGroupParams xReadGroupParams, Map<String, StreamEntryID> streams) XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]xrevrange(String key, StreamEntryID end, StreamEntryID start) XREVRANGE key end startxrevrange(String key, StreamEntryID end, StreamEntryID start, int count) XREVRANGE key end start COUNT countXTRIM key MAXLEN [~] countxtrim(String key, XTrimParams params) XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count]
-
Method Details
-
xadd
XADD key ID field string [field string ...]- Returns:
- the ID of the added entry
-
xadd
XADD key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|ID field value [field value ...]- Returns:
- the ID of the added entry
-
xadd
-
xlen
XLEN key- Returns:
- length of stream
-
xrange
XRANGE key start end- Parameters:
key- keystart- minimumStreamEntryIDfor the retrieved range, passingnullwill indicate minimum ID possible in the streamend- maximumStreamEntryIDfor the retrieved range, passingnullwill indicate maximum ID possible in the stream- Returns:
- The entries with IDs matching the specified range.
-
xrange
XRANGE key start end COUNT count- Parameters:
key- keystart- minimumStreamEntryIDfor the retrieved range, passingnullwill indicate minimum ID possible in the streamend- maximumStreamEntryIDfor the retrieved range, passingnullwill indicate maximum ID possible in the streamcount- maximum number of entries returned- Returns:
- The entries with IDs matching the specified range.
-
xrevrange
XREVRANGE key end start- Parameters:
key- keyend- maximumStreamEntryIDfor the retrieved range, passingnullwill indicate maximum ID possible in the streamstart- minimumStreamEntryIDfor the retrieved range, passingnullwill indicate minimum ID possible in the stream- Returns:
- the entries with IDs matching the specified range, from the higher ID to the lower ID matching.
-
xrevrange
Response<List<StreamEntry>> xrevrange(String key, StreamEntryID end, StreamEntryID start, int count) XREVRANGE key end start COUNT count- Parameters:
key- keyend- maximumStreamEntryIDfor the retrieved range, passingnullwill indicate maximum ID possible in the streamstart- minimumStreamEntryIDfor the retrieved range, passingnullwill indicate minimum ID possible in the streamcount- The entries with IDs matching the specified range.- Returns:
- the entries with IDs matching the specified range, from the higher ID to the lower ID matching.
-
xrange
-
xrange
-
xrevrange
-
xrevrange
-
xack
XACK key group ID [ID ...] -
xgroupCreate
XGROUP CREATE key groupName <id or $> -
xgroupSetID
XGROUP SETID key groupName <id or $> -
xgroupDestroy
XGROUP DESTROY key groupName -
xgroupCreateConsumer
XGROUP CREATECONSUMER key groupName consumerName -
xgroupDelConsumer
XGROUP DELCONSUMER key groupName consumerName -
xpending
XPENDING key group -
xpending
@Deprecated Response<List<StreamPendingEntry>> xpending(String key, String groupName, StreamEntryID start, StreamEntryID end, int count, String consumerName) Deprecated.XPENDING key group [start end count] [consumer] -
xpending
XPENDING key group [[IDLE min-idle-time] start end count [consumer]] -
xdel
XDEL key ID [ID ...] -
xtrim
XTRIM key MAXLEN [~] count -
xtrim
XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count] -
xclaim
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] -
xclaimJustId
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] JUSTID -
xautoclaim
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]- Parameters:
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, passingnullwill indicate '-'params-XAutoClaimParams
-
xautoclaimJustId
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- Parameters:
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, passingnullwill indicate '-'params-XAutoClaimParams
-
xinfoStream
Introspection command used in order to retrieve different information about the stream- Parameters:
key- Stream name- Returns:
StreamInfothat contains information about the stream
-
xinfoStreamFull
Introspection command used in order to retrieve all information about the stream- Parameters:
key- Stream name- Returns:
StreamFullInfothat contains information about the stream
-
xinfoStreamFull
Introspection command used in order to retrieve all information about the stream- Parameters:
key- Stream namecount- stream info count- Returns:
StreamFullInfothat contains information about the stream
-
xinfoGroup
Deprecated. -
xinfoGroups
Introspection command used in order to retrieve different information about groups in the stream- Parameters:
key- Stream name- Returns:
- List of
StreamGroupInfocontaining information about groups
-
xinfoConsumers
Introspection command used in order to retrieve different information about consumers in the group- Parameters:
key- Stream namegroup- Group name- Returns:
- List of
StreamConsumersInfocontaining information about consumers that belong to the the group
-
xread
Response<List<Map.Entry<String,List<StreamEntry>>>> xread(XReadParams xReadParams, Map<String, StreamEntryID> streams) XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...] -
xreadGroup
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 ...]
-
xinfoGroups(java.lang.String).