Module io.inverno.mod.redis
Package io.inverno.mod.redis.operations
Interface RedisStreamReactiveOperations<A,B>
- Type Parameters:
A
- key typeB
- value type
- All Known Subinterfaces:
RedisClient<A,
,B> RedisOperations<A,
,B> RedisTransactionalClient<A,
,B> RedisTransactionalOperations<A,
B>
- All Known Implementing Classes:
io.inverno.mod.redis.lettuce.internal.AbstractRedisClient
,PoolRedisClient
,PoolRedisClusterClient
public interface RedisStreamReactiveOperations<A,B>
Redis Streams reactive commands.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
XADD key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|id field value [field value ...]static interface
XAUTOCLAIM key group consumer min-idle-time start [COUNT count] [JUSTID]static interface
XCLAIM key group consumer min-idle-time id [id ...]static interface
XGROUP CREATE key groupname id|$ [MKSTREAM]static interface
XPENDING key group [IDLE min-idle-time] start end count [consumer]static interface
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] id [id ...]static interface
XREADGROUP GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] id [id ...]static interface
XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count] -
Method Summary
Modifier and TypeMethodDescriptionXACK key group idxack
(A key, A group, Consumer<RedisStreamReactiveOperations.StreamMessageIds> messageIds) XACK key group id [id ...]xadd()
XADD key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|id field value [field value ...]XADD key * field valueXADD key * field value [field value ...]XAUTOCLAIM key group consumer min-idle-time start [COUNT count] [JUSTID]xautoclaim
(A key, A group, A consumer, long minIdleTime, String start) XAUTOCLAIM key group consumer min-idle-time startxclaim()
XCLAIM key group consumer min-idle-time id [id ...]XCLAIM key group consumer min-idle-time idxclaim
(A key, A group, A consumer, long minIdleTime, Consumer<RedisStreamReactiveOperations.StreamMessageIds> messageIds) XCLAIM key group consumer min-idle-time id [id ...]XDEL key idxdel
(A key, Consumer<RedisStreamReactiveOperations.StreamMessageIds> messageIds) XDEL key id [id ...]XGROUP CREATE key groupname id|$ [MKSTREAM]xgroupCreate
(A key, A group, String id) XGROUP CREATE key groupname id|$xgroupCreateconsumer
(A key, A group, A consumer) XGROUP CREATECONSUMER key groupname consumernamexgroupDelconsumer
(A key, A group, A consumer) XGROUP DELCONSUMER key groupname consumernamexgroupDestroy
(A key, A group) XGROUP DESTROY key groupnamexgroupSetid
(A key, A group, String id) XGROUP SETID key groupname id|$xinfoConsumers
(A key, A group) XINFO CONSUMERS key groupnamexinfoGroups
(A key) XINFO GROUPS keyxinfoStream
(A key) XINFO STREAM keyxinfoStreamFull
(A key) XINFO STREAM key FULLxinfoStreamFull
(A key, long count) XINFO STREAM key FULL COUNT countXLEN keyXPENDING key group [[IDLE min-idle-time] start end count [consumer]]XPENDING key group [[IDLE min-idle-time] start end count [consumer]]xpendingExtended
(A key, A group, String start, String end, long count) XPENDING key group [[IDLE min-idle-time] start end count [consumer]]XRANGE key start endXRANGE key start end [COUNT count]xread()
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] id [id ...]XREAD STREAMS key idXREAD STREAMS key [key ...] id [id ...]XREADGROUP GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] id [id ...]xreadgroup
(A group, A consumer, A key, String messageId) XREADGROUP GROUP group consumer STREAMS key idxreadgroup
(A group, A consumer, Consumer<RedisStreamReactiveOperations.StreamStreams<A>> streams) XREADGROUP GROUP group consumer STREAMS key [key ...] id [id ...]XREVRANGE key end startXREVRANGE key end start COUNT countxtrim()
XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count]xtrimMaxLen
(A key, long threshold) XTRIM key MAXLEN thresholdxtrimMaxLen
(A key, long threshold, long count) XTRIM key MAXLEN threshold LIMIT countxtrimMinId
(A key, String streamId) XTRIM key MINID streamIdxtrimMinId
(A key, String streamId, long count) XTRIM key MINID threshold LIMIT count
-
Method Details
-
xack
XACK key group id- Parameters:
key
-group
-messageId
-- Returns:
-
xack
Mono<Long> xack(A key, A group, Consumer<RedisStreamReactiveOperations.StreamMessageIds> messageIds) XACK key group id [id ...]- Parameters:
key
-group
-messageIds
-- Returns:
-
xadd
XADD key * field value- Parameters:
key
-field
-value
-- Returns:
-
xadd
XADD key * field value [field value ...]- Parameters:
key
-entries
-- Returns:
-
xadd
XADD key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|id field value [field value ...]- Returns:
-
xautoclaim
Mono<RedisStreamReactiveOperations.StreamClaimedMessages<A,B>> xautoclaim(A key, A group, A consumer, long minIdleTime, String start) XAUTOCLAIM key group consumer min-idle-time start- Parameters:
key
-group
-consumer
-minIdleTime
-start
-- Returns:
-
xautoclaim
RedisStreamReactiveOperations.StreamXautoclaimBuilder<A,B> xautoclaim()XAUTOCLAIM key group consumer min-idle-time start [COUNT count] [JUSTID]- Returns:
-
xclaim
Flux<RedisStreamReactiveOperations.StreamMessage<A,B>> xclaim(A key, A group, A consumer, long minIdleTime, String messageId) XCLAIM key group consumer min-idle-time id- Parameters:
key
-group
-consumer
-minIdleTime
-messageId
-- Returns:
-
xclaim
Flux<RedisStreamReactiveOperations.StreamMessage<A,B>> xclaim(A key, A group, A consumer, long minIdleTime, Consumer<RedisStreamReactiveOperations.StreamMessageIds> messageIds) XCLAIM key group consumer min-idle-time id [id ...]- Parameters:
key
-group
-consumer
-minIdleTime
-messageIds
-- Returns:
-
xclaim
XCLAIM key group consumer min-idle-time id [id ...] [IDLE ms] [TIME ms-unix-time] [RETRYCOUNT count] [FORCE] [JUSTID]- Returns:
-
xdel
XDEL key id- Parameters:
key
-messageId
-- Returns:
-
xdel
XDEL key id [id ...]- Parameters:
key
-messageIds
-- Returns:
-
xgroupCreate
XGROUP CREATE key groupname id|$- Parameters:
key
-group
-id
-- Returns:
-
xgroupCreate
RedisStreamReactiveOperations.StreamXgroupCreateBuilder<A> xgroupCreate()XGROUP CREATE key groupname id|$ [MKSTREAM]- Returns:
-
xgroupCreateconsumer
XGROUP CREATECONSUMER key groupname consumername- Parameters:
key
-group
-consumer
-- Returns:
-
xgroupDelconsumer
XGROUP DELCONSUMER key groupname consumername- Parameters:
key
-group
-consumer
-- Returns:
-
xgroupDestroy
XGROUP DESTROY key groupname- Parameters:
key
-group
-- Returns:
-
xgroupSetid
XGROUP SETID key groupname id|$- Parameters:
key
-group
-id
-- Returns:
-
xinfoConsumers
XINFO CONSUMERS key groupname- Parameters:
key
-group
-- Returns:
-
xinfoGroups
XINFO GROUPS key- Parameters:
key
-- Returns:
-
xinfoStream
XINFO STREAM key- Parameters:
key
-- Returns:
-
xinfoStreamFull
XINFO STREAM key FULL- Parameters:
key
-- Returns:
-
xinfoStreamFull
XINFO STREAM key FULL COUNT count- Parameters:
key
-count
-- Returns:
-
xlen
XLEN key- Parameters:
key
-- Returns:
-
xpending
XPENDING key group [[IDLE min-idle-time] start end count [consumer]]- Parameters:
key
-group
-- Returns:
-
xpendingExtended
Flux<RedisStreamReactiveOperations.StreamPendingMessage> xpendingExtended(A key, A group, String start, String end, long count) XPENDING key group [[IDLE min-idle-time] start end count [consumer]]- Parameters:
key
-group
-start
-end
-count
-- Returns:
-
xpendingExtended
RedisStreamReactiveOperations.StreamXpendingExtendedBuilder<A> xpendingExtended()XPENDING key group [[IDLE min-idle-time] start end count [consumer]]- Returns:
-
xrange
XRANGE key start end- Parameters:
key
-start
-end
-- Returns:
-
xrange
Flux<RedisStreamReactiveOperations.StreamMessage<A,B>> xrange(A key, String start, String end, long count) XRANGE key start end [COUNT count]- Parameters:
key
-start
-end
-count
-- Returns:
-
xread
XREAD STREAMS key id- Parameters:
key
-messageId
-- Returns:
-
xread
Flux<RedisStreamReactiveOperations.StreamMessage<A,B>> xread(Consumer<RedisStreamReactiveOperations.StreamStreams<A>> streams) XREAD STREAMS key [key ...] id [id ...]- Parameters:
streams
-- Returns:
-
xread
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] id [id ...]- Returns:
-
xreadgroup
Flux<RedisStreamReactiveOperations.StreamMessage<A,B>> xreadgroup(A group, A consumer, A key, String messageId) XREADGROUP GROUP group consumer STREAMS key id- Parameters:
group
-consumer
-key
-messageId
-- Returns:
-
xreadgroup
Flux<RedisStreamReactiveOperations.StreamMessage<A,B>> xreadgroup(A group, A consumer, Consumer<RedisStreamReactiveOperations.StreamStreams<A>> streams) XREADGROUP GROUP group consumer STREAMS key [key ...] id [id ...]- Parameters:
group
-consumer
-streams
-- Returns:
-
xreadgroup
RedisStreamReactiveOperations.StreamXreadgroupBuilder<A,B> xreadgroup()XREADGROUP GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] id [id ...]- Returns:
-
xrevrange
XREVRANGE key end start- Parameters:
key
-start
-end
-- Returns:
-
xrevrange
Flux<RedisStreamReactiveOperations.StreamMessage<A,B>> xrevrange(A key, String start, String end, long count) XREVRANGE key end start COUNT count- Parameters:
key
-start
-end
-count
-- Returns:
-
xtrimMaxLen
XTRIM key MAXLEN threshold- Parameters:
key
-threshold
-- Returns:
-
xtrimMaxLen
XTRIM key MAXLEN threshold LIMIT count- Parameters:
key
-threshold
-count
-- Returns:
-
xtrimMinId
XTRIM key MINID streamId- Parameters:
key
-streamId
-- Returns:
-
xtrimMinId
XTRIM key MINID threshold LIMIT count- Parameters:
key
-streamId
-count
-- Returns:
-
xtrim
XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count]- Returns:
-