Class RedissonStreamCommands
- java.lang.Object
-
- org.redisson.spring.data.connection.RedissonStreamCommands
-
- All Implemented Interfaces:
org.springframework.data.redis.connection.RedisStreamCommands
public class RedissonStreamCommands extends Object implements org.springframework.data.redis.connection.RedisStreamCommands
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisStreamCommands
org.springframework.data.redis.connection.RedisStreamCommands.XAddOptions, org.springframework.data.redis.connection.RedisStreamCommands.XClaimOptions, org.springframework.data.redis.connection.RedisStreamCommands.XPendingOptions
-
-
Constructor Summary
Constructors Constructor Description RedissonStreamCommands(RedissonConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongxAck(byte[] key, String group, org.springframework.data.redis.connection.stream.RecordId... recordIds)org.springframework.data.redis.connection.stream.RecordIdxAdd(org.springframework.data.redis.connection.stream.MapRecord<byte[],byte[],byte[]> record)org.springframework.data.redis.connection.stream.RecordIdxAdd(org.springframework.data.redis.connection.stream.MapRecord<byte[],byte[],byte[]> record, org.springframework.data.redis.connection.RedisStreamCommands.XAddOptions options)List<org.springframework.data.redis.connection.stream.ByteRecord>xClaim(byte[] key, String group, String newOwner, org.springframework.data.redis.connection.RedisStreamCommands.XClaimOptions options)List<org.springframework.data.redis.connection.stream.RecordId>xClaimJustId(byte[] key, String group, String newOwner, org.springframework.data.redis.connection.RedisStreamCommands.XClaimOptions options)LongxDel(byte[] key, org.springframework.data.redis.connection.stream.RecordId... recordIds)StringxGroupCreate(byte[] key, String groupName, org.springframework.data.redis.connection.stream.ReadOffset readOffset)StringxGroupCreate(byte[] key, String groupName, org.springframework.data.redis.connection.stream.ReadOffset readOffset, boolean mkStream)BooleanxGroupDelConsumer(byte[] key, org.springframework.data.redis.connection.stream.Consumer consumer)BooleanxGroupDestroy(byte[] key, String groupName)org.springframework.data.redis.connection.stream.StreamInfo.XInfoStreamxInfo(byte[] key)org.springframework.data.redis.connection.stream.StreamInfo.XInfoConsumersxInfoConsumers(byte[] key, String groupName)org.springframework.data.redis.connection.stream.StreamInfo.XInfoGroupsxInfoGroups(byte[] key)LongxLen(byte[] key)org.springframework.data.redis.connection.stream.PendingMessagesSummaryxPending(byte[] key, String groupName)org.springframework.data.redis.connection.stream.PendingMessagesxPending(byte[] key, String groupName, org.springframework.data.redis.connection.RedisStreamCommands.XPendingOptions options)List<org.springframework.data.redis.connection.stream.ByteRecord>xRange(byte[] key, org.springframework.data.domain.Range<String> range, org.springframework.data.redis.connection.RedisZSetCommands.Limit limit)List<org.springframework.data.redis.connection.stream.ByteRecord>xRead(org.springframework.data.redis.connection.stream.StreamReadOptions readOptions, org.springframework.data.redis.connection.stream.StreamOffset<byte[]>... streams)List<org.springframework.data.redis.connection.stream.ByteRecord>xReadGroup(org.springframework.data.redis.connection.stream.Consumer consumer, org.springframework.data.redis.connection.stream.StreamReadOptions readOptions, org.springframework.data.redis.connection.stream.StreamOffset<byte[]>... streams)List<org.springframework.data.redis.connection.stream.ByteRecord>xRevRange(byte[] key, org.springframework.data.domain.Range<String> range, org.springframework.data.redis.connection.RedisZSetCommands.Limit limit)LongxTrim(byte[] key, long count)LongxTrim(byte[] key, long count, boolean approximateTrimming)
-
-
-
Constructor Detail
-
RedissonStreamCommands
public RedissonStreamCommands(RedissonConnection connection)
-
-
Method Detail
-
xAdd
public org.springframework.data.redis.connection.stream.RecordId xAdd(org.springframework.data.redis.connection.stream.MapRecord<byte[],byte[],byte[]> record)
- Specified by:
xAddin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xClaimJustId
public List<org.springframework.data.redis.connection.stream.RecordId> xClaimJustId(byte[] key, String group, String newOwner, org.springframework.data.redis.connection.RedisStreamCommands.XClaimOptions options)
- Specified by:
xClaimJustIdin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xClaim
public List<org.springframework.data.redis.connection.stream.ByteRecord> xClaim(byte[] key, String group, String newOwner, org.springframework.data.redis.connection.RedisStreamCommands.XClaimOptions options)
- Specified by:
xClaimin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xGroupCreate
public String xGroupCreate(byte[] key, String groupName, org.springframework.data.redis.connection.stream.ReadOffset readOffset, boolean mkStream)
- Specified by:
xGroupCreatein interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xInfo
public org.springframework.data.redis.connection.stream.StreamInfo.XInfoStream xInfo(byte[] key)
- Specified by:
xInfoin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xInfoGroups
public org.springframework.data.redis.connection.stream.StreamInfo.XInfoGroups xInfoGroups(byte[] key)
- Specified by:
xInfoGroupsin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xInfoConsumers
public org.springframework.data.redis.connection.stream.StreamInfo.XInfoConsumers xInfoConsumers(byte[] key, String groupName)- Specified by:
xInfoConsumersin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xPending
public org.springframework.data.redis.connection.stream.PendingMessagesSummary xPending(byte[] key, String groupName)- Specified by:
xPendingin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xPending
public org.springframework.data.redis.connection.stream.PendingMessages xPending(byte[] key, String groupName, org.springframework.data.redis.connection.RedisStreamCommands.XPendingOptions options)- Specified by:
xPendingin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xAck
public Long xAck(byte[] key, String group, org.springframework.data.redis.connection.stream.RecordId... recordIds)
- Specified by:
xAckin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xAdd
public org.springframework.data.redis.connection.stream.RecordId xAdd(org.springframework.data.redis.connection.stream.MapRecord<byte[],byte[],byte[]> record, org.springframework.data.redis.connection.RedisStreamCommands.XAddOptions options)- Specified by:
xAddin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xDel
public Long xDel(byte[] key, org.springframework.data.redis.connection.stream.RecordId... recordIds)
- Specified by:
xDelin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xGroupCreate
public String xGroupCreate(byte[] key, String groupName, org.springframework.data.redis.connection.stream.ReadOffset readOffset)
- Specified by:
xGroupCreatein interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xGroupDelConsumer
public Boolean xGroupDelConsumer(byte[] key, org.springframework.data.redis.connection.stream.Consumer consumer)
- Specified by:
xGroupDelConsumerin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xGroupDestroy
public Boolean xGroupDestroy(byte[] key, String groupName)
- Specified by:
xGroupDestroyin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xLen
public Long xLen(byte[] key)
- Specified by:
xLenin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xRange
public List<org.springframework.data.redis.connection.stream.ByteRecord> xRange(byte[] key, org.springframework.data.domain.Range<String> range, org.springframework.data.redis.connection.RedisZSetCommands.Limit limit)
- Specified by:
xRangein interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xRead
public List<org.springframework.data.redis.connection.stream.ByteRecord> xRead(org.springframework.data.redis.connection.stream.StreamReadOptions readOptions, org.springframework.data.redis.connection.stream.StreamOffset<byte[]>... streams)
- Specified by:
xReadin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xReadGroup
public List<org.springframework.data.redis.connection.stream.ByteRecord> xReadGroup(org.springframework.data.redis.connection.stream.Consumer consumer, org.springframework.data.redis.connection.stream.StreamReadOptions readOptions, org.springframework.data.redis.connection.stream.StreamOffset<byte[]>... streams)
- Specified by:
xReadGroupin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xRevRange
public List<org.springframework.data.redis.connection.stream.ByteRecord> xRevRange(byte[] key, org.springframework.data.domain.Range<String> range, org.springframework.data.redis.connection.RedisZSetCommands.Limit limit)
- Specified by:
xRevRangein interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xTrim
public Long xTrim(byte[] key, long count)
- Specified by:
xTrimin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
xTrim
public Long xTrim(byte[] key, long count, boolean approximateTrimming)
- Specified by:
xTrimin interfaceorg.springframework.data.redis.connection.RedisStreamCommands
-
-