Package org.redisson

Class RedissonStream<K,​V>

    • Method Detail

      • checkKey

        protected void checkKey​(Object key)
      • checkValue

        protected void checkValue​(Object value)
      • createGroup

        public void createGroup​(String groupName)
        Description copied from interface: RStream
        Creates consumer group by name.
        Specified by:
        createGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
      • createGroup

        public void createGroup​(String groupName,
                                StreamMessageId id)
        Description copied from interface: RStream
        Creates consumer group by name and Stream Message ID. Only new messages after defined stream id will be available for consumers of this group.

        StreamMessageId.NEWEST is used for messages arrived since the moment of group creating

        Specified by:
        createGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        id - - Stream Message ID
      • createGroupAsync

        public RFuture<Void> createGroupAsync​(String groupName,
                                              StreamMessageId id)
        Description copied from interface: RStreamAsync
        Creates consumer group by name and stream id. Only new messages after defined stream id will be available for consumers of this group.

        StreamMessageId.NEWEST is used for messages arrived since the moment of group creating

        Specified by:
        createGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        id - - stream id
        Returns:
        void
      • ackAsync

        public RFuture<Long> ackAsync​(String groupName,
                                      StreamMessageId... ids)
        Description copied from interface: RStreamAsync
        Marks pending messages by group name and stream ids as correctly processed.
        Specified by:
        ackAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        ids - - stream ids
        Returns:
        marked messages amount
      • ack

        public long ack​(String groupName,
                        StreamMessageId... id)
        Description copied from interface: RStream
        Marks pending messages by group name and stream ids as correctly processed.
        Specified by:
        ack in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        id - - Stream Message IDs
        Returns:
        marked messages amount
      • listPending

        public PendingResult listPending​(String groupName)
        Description copied from interface: RStream
        Returns pending messages by group name
        Specified by:
        listPending in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        Returns:
        result object
      • listPending

        public List<PendingEntry> listPending​(String groupName,
                                              StreamMessageId startId,
                                              StreamMessageId endId,
                                              int count)
        Description copied from interface: RStream
        Returns list of pending messages by group name. Limited by start Stream Message ID and end Stream Message ID and count.

        StreamMessageId.MAX is used as max Stream Message ID StreamMessageId.MIN is used as min Stream Message ID

        Specified by:
        listPending in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        startId - - start Stream Message ID
        endId - - end Stream Message ID
        count - - amount of messages
        Returns:
        list
      • listPending

        public List<PendingEntry> listPending​(String groupName,
                                              String consumerName,
                                              StreamMessageId startId,
                                              StreamMessageId endId,
                                              int count)
        Description copied from interface: RStream
        Returns list of pending messages by group name and consumer name. Limited by start Stream Message ID and end Stream Message ID and count.

        StreamMessageId.MAX is used as max Stream Message ID StreamMessageId.MIN is used as min Stream Message ID

        Specified by:
        listPending in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        startId - - start Stream Message ID
        endId - - end Stream Message ID
        count - - amount of messages
        Returns:
        list
      • fastClaim

        public List<StreamMessageId> fastClaim​(String groupName,
                                               String consumerName,
                                               long idleTime,
                                               TimeUnit idleTimeUnit,
                                               StreamMessageId... ids)
        Description copied from interface: RStream
        Transfers ownership of pending messages by id to a new consumer by name if idle time of messages is greater than defined value.
        Specified by:
        fastClaim in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        idleTime - - minimum idle time of messages
        idleTimeUnit - - idle time unit
        ids - - Stream Message IDs
        Returns:
        list of Stream Message IDs
      • fastClaimAsync

        public RFuture<List<StreamMessageId>> fastClaimAsync​(String groupName,
                                                             String consumerName,
                                                             long idleTime,
                                                             TimeUnit idleTimeUnit,
                                                             StreamMessageId... ids)
        Description copied from interface: RStreamAsync
        Transfers ownership of pending messages by id to a new consumer by name if idle time of messages is greater than defined value.
        Specified by:
        fastClaimAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        idleTime - - minimum idle time of messages
        idleTimeUnit - - idle time unit
        ids - - Stream Message IDs
        Returns:
        list of Stream Message IDs
      • claimAsync

        public RFuture<Map<StreamMessageId,​Map<K,​V>>> claimAsync​(String groupName,
                                                                             String consumerName,
                                                                             long idleTime,
                                                                             TimeUnit idleTimeUnit,
                                                                             StreamMessageId... ids)
        Description copied from interface: RStreamAsync
        Transfers ownership of pending messages by id to a new consumer by name if idle time of messages is greater than defined value.
        Specified by:
        claimAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        idleTime - - minimum idle time of messages
        idleTimeUnit - - idle time unit
        ids - - stream ids
        Returns:
        stream data mapped by Stream ID
      • claim

        public Map<StreamMessageId,​Map<K,​V>> claim​(String groupName,
                                                               String consumerName,
                                                               long idleTime,
                                                               TimeUnit idleTimeUnit,
                                                               StreamMessageId... ids)
        Description copied from interface: RStream
        Transfers ownership of pending messages by id to a new consumer by name if idle time of messages is greater than defined value.
        Specified by:
        claim in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        idleTime - - minimum idle time of messages
        idleTimeUnit - - idle time unit
        ids - - Stream Message IDs
        Returns:
        stream data mapped by Stream Message ID
      • readGroupAsync

        public RFuture<Map<StreamMessageId,​Map<K,​V>>> readGroupAsync​(String groupName,
                                                                                 String consumerName,
                                                                                 StreamMessageId... ids)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName and specified collection of Stream IDs.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        ids - - collection of Stream IDs
        Returns:
        stream data mapped by Stream ID
      • readGroupAsync

        public RFuture<Map<StreamMessageId,​Map<K,​V>>> readGroupAsync​(String groupName,
                                                                                 String consumerName,
                                                                                 int count,
                                                                                 StreamMessageId... ids)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName and specified collection of Stream IDs.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        ids - - collection of Stream IDs
        Returns:
        stream data mapped by Stream ID
      • readGroupAsync

        public RFuture<Map<StreamMessageId,​Map<K,​V>>> readGroupAsync​(String groupName,
                                                                                 String consumerName,
                                                                                 long timeout,
                                                                                 TimeUnit unit,
                                                                                 StreamMessageId... ids)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName and specified collection of Stream IDs. Wait for stream data availability for specified timeout interval.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        ids - - collection of Stream IDs
        Returns:
        stream data mapped by Stream ID
      • readGroupAsync

        public RFuture<Map<StreamMessageId,​Map<K,​V>>> readGroupAsync​(String groupName,
                                                                                 String consumerName,
                                                                                 int count,
                                                                                 long timeout,
                                                                                 TimeUnit unit,
                                                                                 StreamMessageId... ids)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName and specified collection of Stream IDs. Wait for stream data availability for specified timeout interval.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        ids - - collection of Stream IDs
        Returns:
        stream data mapped by Stream ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     StreamMessageId id,
                                                                                     Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        id - - starting message id for this stream
        keyToId - - Stream Message ID mapped by stream name
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   StreamMessageId id,
                                                                                                   Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        id - - starting message id for this stream
        keyToId - - Stream Message ID mapped by stream name
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     int count,
                                                                                     StreamMessageId id,
                                                                                     Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        id - - starting message id for this stream
        keyToId - - Stream Message ID mapped by stream name
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   int count,
                                                                                                   StreamMessageId id,
                                                                                                   Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        id - - starting message id for this stream
        keyToId - - Stream Message ID mapped by stream name
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   int count,
                                                                                                   long timeout,
                                                                                                   TimeUnit unit,
                                                                                                   StreamMessageId id,
                                                                                                   String key2,
                                                                                                   StreamMessageId id2)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   int count,
                                                                                                   long timeout,
                                                                                                   TimeUnit unit,
                                                                                                   StreamMessageId id,
                                                                                                   String key2,
                                                                                                   StreamMessageId id2,
                                                                                                   String key3,
                                                                                                   StreamMessageId id3)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        key3 - - name of third stream
        id3 - - starting message id for third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   long timeout,
                                                                                                   TimeUnit unit,
                                                                                                   StreamMessageId id,
                                                                                                   Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        keyToId - - Stream Message ID mapped by stream name
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     int count,
                                                                                     long timeout,
                                                                                     TimeUnit unit,
                                                                                     StreamMessageId id,
                                                                                     Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        keyToId - - Stream Message ID mapped by stream name
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     long timeout,
                                                                                     TimeUnit unit,
                                                                                     StreamMessageId id,
                                                                                     Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        keyToId - - Stream Message ID mapped by stream name
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   StreamMessageId id,
                                                                                                   String key2,
                                                                                                   StreamMessageId id2)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   StreamMessageId id,
                                                                                                   String key2,
                                                                                                   StreamMessageId id2,
                                                                                                   String key3,
                                                                                                   StreamMessageId id3)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        key3 - - name of third stream
        id3 - - starting message id for third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   int count,
                                                                                                   StreamMessageId id,
                                                                                                   String key2,
                                                                                                   StreamMessageId id2)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   int count,
                                                                                                   StreamMessageId id,
                                                                                                   String key2,
                                                                                                   StreamMessageId id2,
                                                                                                   String key3,
                                                                                                   StreamMessageId id3)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        key3 - - name of third stream
        id3 - - starting message id for third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   long timeout,
                                                                                                   TimeUnit unit,
                                                                                                   StreamMessageId id,
                                                                                                   String key2,
                                                                                                   StreamMessageId id2)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroupAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readGroupAsync​(String groupName,
                                                                                                   String consumerName,
                                                                                                   long timeout,
                                                                                                   TimeUnit unit,
                                                                                                   StreamMessageId id,
                                                                                                   String key2,
                                                                                                   StreamMessageId id2,
                                                                                                   String key3,
                                                                                                   StreamMessageId id3)
        Description copied from interface: RStreamAsync
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroupAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        key3 - - name of third stream
        id3 - - starting message id for third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     StreamMessageId id,
                                                                                     String key2,
                                                                                     StreamMessageId id2)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     StreamMessageId id,
                                                                                     String key2,
                                                                                     StreamMessageId id2,
                                                                                     String key3,
                                                                                     StreamMessageId id3)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        key3 - - name of third stream
        id3 - - starting message id for third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     int count,
                                                                                     StreamMessageId id,
                                                                                     String key2,
                                                                                     StreamMessageId id2)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     int count,
                                                                                     StreamMessageId id,
                                                                                     String key2,
                                                                                     StreamMessageId id2,
                                                                                     String key3,
                                                                                     StreamMessageId id3)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        key3 - - name of third stream
        id3 - - starting message id for third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     long timeout,
                                                                                     TimeUnit unit,
                                                                                     StreamMessageId id,
                                                                                     String key2,
                                                                                     StreamMessageId id2)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     long timeout,
                                                                                     TimeUnit unit,
                                                                                     StreamMessageId id,
                                                                                     String key2,
                                                                                     StreamMessageId id2,
                                                                                     String key3,
                                                                                     StreamMessageId id3)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        key3 - - name of third stream
        id3 - - starting message id for third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     int count,
                                                                                     long timeout,
                                                                                     TimeUnit unit,
                                                                                     StreamMessageId id,
                                                                                     String key2,
                                                                                     StreamMessageId id2)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> readGroup​(String groupName,
                                                                                     String consumerName,
                                                                                     int count,
                                                                                     long timeout,
                                                                                     TimeUnit unit,
                                                                                     StreamMessageId id,
                                                                                     String key2,
                                                                                     StreamMessageId id2,
                                                                                     String key3,
                                                                                     StreamMessageId id3)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName, starting by specified message ids for this and other streams. Waits for the first stream data availability for specified timeout interval.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - starting message id for this stream
        key2 - - name of second stream
        id2 - - starting message id for second stream
        key3 - - name of third stream
        id3 - - starting message id for third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readGroup

        public Map<StreamMessageId,​Map<K,​V>> readGroup​(String groupName,
                                                                   String consumerName,
                                                                   StreamMessageId... ids)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName and specified collection of Stream Message IDs.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        ids - - collection of Stream Message IDs
        Returns:
        stream data mapped by Stream Message ID
      • readGroup

        public Map<StreamMessageId,​Map<K,​V>> readGroup​(String groupName,
                                                                   String consumerName,
                                                                   int count,
                                                                   StreamMessageId... ids)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName and specified collection of Stream Message IDs.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        ids - - collection of Stream Message IDs
        Returns:
        stream data mapped by Stream Message ID
      • readGroup

        public Map<StreamMessageId,​Map<K,​V>> readGroup​(String groupName,
                                                                   String consumerName,
                                                                   long timeout,
                                                                   TimeUnit unit,
                                                                   StreamMessageId... ids)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName and specified collection of Stream Message IDs. Waits for stream data availability for specified timeout interval.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        ids - - collection of Stream Message IDs
        Returns:
        stream data mapped by Stream Message ID
      • readGroup

        public Map<StreamMessageId,​Map<K,​V>> readGroup​(String groupName,
                                                                   String consumerName,
                                                                   int count,
                                                                   long timeout,
                                                                   TimeUnit unit,
                                                                   StreamMessageId... ids)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName and specified collection of Stream Message IDs. Waits for stream data availability for specified timeout interval.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        ids - - collection of Stream Message IDs
        Returns:
        stream data mapped by Stream Message ID
      • addAll

        public StreamMessageId addAll​(Map<K,​V> entries)
        Description copied from interface: RStream
        Appends new entries and returns generated Stream Message ID
        Specified by:
        addAll in interface RStream<K,​V>
        Parameters:
        entries - - entries to add
        Returns:
        Stream Message ID
      • addAll

        public void addAll​(StreamMessageId id,
                           Map<K,​V> entries)
        Description copied from interface: RStream
        Appends new entries by specified Stream Message ID
        Specified by:
        addAll in interface RStream<K,​V>
        Parameters:
        id - - Stream Message ID
        entries - - entries to add
      • addAll

        public StreamMessageId addAll​(Map<K,​V> entries,
                                      int trimLen,
                                      boolean trimStrict)
        Description copied from interface: RStream
        Appends new entries and returns generated Stream Message ID. Trims stream to a specified trimLen size. If trimStrict is false then trims to few tens of entries more than specified length to trim.
        Specified by:
        addAll in interface RStream<K,​V>
        Parameters:
        entries - - entries to add
        trimLen - - length to trim
        trimStrict - - if false then trims to few tens of entries more than specified length to trim
        Returns:
        Stream Message ID
      • addAllAsync

        public RFuture<StreamMessageId> addAllAsync​(Map<K,​V> entries,
                                                    int trimLen,
                                                    boolean trimStrict)
        Description copied from interface: RStreamAsync
        Appends new entries and returns generated Stream ID. Trims stream to a specified trimLen size. If trimStrict is false then trims to few tens of entries more than specified length to trim.
        Specified by:
        addAllAsync in interface RStreamAsync<K,​V>
        Parameters:
        entries - - entries to add
        trimLen - - length to trim
        trimStrict - - if false then trims to few tens of entries more than specified length to trim
        Returns:
        Stream ID
      • addAll

        public void addAll​(StreamMessageId id,
                           Map<K,​V> entries,
                           int trimLen,
                           boolean trimStrict)
        Description copied from interface: RStream
        Appends new entries by specified Stream Message ID. Trims stream to a specified trimLen size. If trimStrict is false then trims to few tens of entries more than specified length to trim.
        Specified by:
        addAll in interface RStream<K,​V>
        Parameters:
        id - - Stream Message ID
        entries - - entries to add
        trimLen - - length to trim
        trimStrict - - if false then trims to few tens of entries more than specified length to trim
      • addAllAsync

        public RFuture<Void> addAllAsync​(StreamMessageId id,
                                         Map<K,​V> entries,
                                         int trimLen,
                                         boolean trimStrict)
        Description copied from interface: RStreamAsync
        Appends new entries by specified Stream ID. Trims stream to a specified trimLen size. If trimStrict is false then trims to few tens of entries more than specified length to trim.
        Specified by:
        addAllAsync in interface RStreamAsync<K,​V>
        Parameters:
        id - - Stream ID
        entries - - entries to add
        trimLen - - length to trim
        trimStrict - - if false then trims to few tens of entries more than specified length to trim
        Returns:
        void
      • size

        public long size()
        Description copied from interface: RStream
        Returns number of entries in stream
        Specified by:
        size in interface RStream<K,​V>
        Returns:
        size of stream
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(StreamMessageId id,
                                                                                Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStream
        Read stream data by specified Stream Message ID mapped by name including this stream.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        id - - id of this stream
        keyToId - - Stream Message ID mapped by name
        Returns:
        stream data mapped by key and Stream Message ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(int count,
                                                                                StreamMessageId id,
                                                                                Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStream
        Read stream data by specified Stream Message ID mapped by name including this stream.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        id - - id of this stream
        keyToId - - Stream Message ID mapped by name
        Returns:
        stream data mapped by key and Stream Message ID
      • readAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readAsync​(int count,
                                                                                              long timeout,
                                                                                              TimeUnit unit,
                                                                                              StreamMessageId id,
                                                                                              String key2,
                                                                                              StreamMessageId id2)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream name including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        readAsync in interface RStreamAsync<K,​V>
        Parameters:
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        Returns:
        stream data mapped by key and Stream ID
      • readAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readAsync​(int count,
                                                                                              long timeout,
                                                                                              TimeUnit unit,
                                                                                              StreamMessageId id,
                                                                                              String key2,
                                                                                              StreamMessageId id2,
                                                                                              String key3,
                                                                                              StreamMessageId id3)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream names including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        readAsync in interface RStreamAsync<K,​V>
        Parameters:
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        key3 - - name of third stream
        id3 - - id of third stream
        Returns:
        stream data mapped by key and Stream ID
      • readAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readAsync​(long timeout,
                                                                                              TimeUnit unit,
                                                                                              StreamMessageId id,
                                                                                              Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream id mapped by name including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        readAsync in interface RStreamAsync<K,​V>
        Parameters:
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        keyToId - - stream id mapped by name
        Returns:
        stream data mapped by key and Stream ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(int count,
                                                                                long timeout,
                                                                                TimeUnit unit,
                                                                                StreamMessageId id,
                                                                                Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStream
        Read stream data by specified Stream Message ID mapped by name including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        keyToId - - Stream Message ID mapped by name
        Returns:
        stream data mapped by key and Stream Message ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(long timeout,
                                                                                TimeUnit unit,
                                                                                StreamMessageId id,
                                                                                Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStream
        Read stream data by specified Stream Message ID mapped by name including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        keyToId - - Stream Message ID mapped by name
        Returns:
        stream data mapped by key and Stream Message ID
      • readAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readAsync​(long timeout,
                                                                                              TimeUnit unit,
                                                                                              StreamMessageId id,
                                                                                              String key2,
                                                                                              StreamMessageId id2)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream name including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        readAsync in interface RStreamAsync<K,​V>
        Parameters:
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        Returns:
        stream data mapped by key and Stream ID
      • readAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readAsync​(long timeout,
                                                                                              TimeUnit unit,
                                                                                              StreamMessageId id,
                                                                                              String key2,
                                                                                              StreamMessageId id2,
                                                                                              String key3,
                                                                                              StreamMessageId id3)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream names including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        readAsync in interface RStreamAsync<K,​V>
        Parameters:
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        key3 - - name of third stream
        id3 - - id of third stream
        Returns:
        stream data mapped by key and Stream ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(StreamMessageId id,
                                                                                String key2,
                                                                                StreamMessageId id2)
        Description copied from interface: RStream
        Read stream data by specified stream name including this stream.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(int count,
                                                                                StreamMessageId id,
                                                                                String key2,
                                                                                StreamMessageId id2)
        Description copied from interface: RStream
        Read stream data by specified stream name including this stream.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(int count,
                                                                                StreamMessageId id,
                                                                                String key2,
                                                                                StreamMessageId id2,
                                                                                String key3,
                                                                                StreamMessageId id3)
        Description copied from interface: RStream
        Read stream data by specified stream names including this stream.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        key3 - - name of third stream
        id3 - - id of third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(long timeout,
                                                                                TimeUnit unit,
                                                                                StreamMessageId id,
                                                                                String key2,
                                                                                StreamMessageId id2)
        Description copied from interface: RStream
        Read stream data by specified stream name including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(long timeout,
                                                                                TimeUnit unit,
                                                                                StreamMessageId id,
                                                                                String key2,
                                                                                StreamMessageId id2,
                                                                                String key3,
                                                                                StreamMessageId id3)
        Description copied from interface: RStream
        Read stream data by specified stream names including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        key3 - - name of third stream
        id3 - - id of third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(int count,
                                                                                long timeout,
                                                                                TimeUnit unit,
                                                                                StreamMessageId id,
                                                                                String key2,
                                                                                StreamMessageId id2)
        Description copied from interface: RStream
        Read stream data by specified stream name including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        Returns:
        stream data mapped by key and Stream Message ID
      • read

        public Map<String,​Map<StreamMessageId,​Map<K,​V>>> read​(int count,
                                                                                long timeout,
                                                                                TimeUnit unit,
                                                                                StreamMessageId id,
                                                                                String key2,
                                                                                StreamMessageId id2,
                                                                                String key3,
                                                                                StreamMessageId id3)
        Description copied from interface: RStream
        Read stream data by specified stream names including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        key2 - - name of second stream
        id2 - - id of second stream
        key3 - - name of third stream
        id3 - - id of third stream
        Returns:
        stream data mapped by key and Stream Message ID
      • readAsync

        public RFuture<Map<String,​Map<StreamMessageId,​Map<K,​V>>>> readAsync​(int count,
                                                                                              long timeout,
                                                                                              TimeUnit unit,
                                                                                              StreamMessageId id,
                                                                                              Map<String,​StreamMessageId> keyToId)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream id mapped by name including this stream. Wait for the first stream data availability for specified timeout interval.
        Specified by:
        readAsync in interface RStreamAsync<K,​V>
        Parameters:
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        id - - id of this stream
        keyToId - - stream id mapped by name
        Returns:
        stream data mapped by key and Stream ID
      • addAsync

        public RFuture<StreamMessageId> addAsync​(K key,
                                                 V value)
        Description copied from interface: RStreamAsync
        Appends a new entry and returns generated Stream ID
        Specified by:
        addAsync in interface RStreamAsync<K,​V>
        Parameters:
        key - - key of entry
        value - - value of entry
        Returns:
        Stream ID
      • addAsync

        public RFuture<Void> addAsync​(StreamMessageId id,
                                      K key,
                                      V value)
        Description copied from interface: RStreamAsync
        Appends a new entry by specified Stream ID
        Specified by:
        addAsync in interface RStreamAsync<K,​V>
        Parameters:
        id - - Stream ID
        key - - key of entry
        value - - value of entry
        Returns:
        void
      • addAsync

        public RFuture<StreamMessageId> addAsync​(K key,
                                                 V value,
                                                 int trimLen,
                                                 boolean trimStrict)
        Description copied from interface: RStreamAsync
        Appends a new entry and returns generated Stream ID. Trims stream to a specified trimLen size. If trimStrict is false then trims to few tens of entries more than specified length to trim.
        Specified by:
        addAsync in interface RStreamAsync<K,​V>
        Parameters:
        key - - key of entry
        value - - value of entry
        trimLen - - length to trim
        trimStrict - - if false then trims to few tens of entries more than specified length to trim
        Returns:
        Stream ID
      • addAsync

        public RFuture<Void> addAsync​(StreamMessageId id,
                                      K key,
                                      V value,
                                      int trimLen,
                                      boolean trimStrict)
        Description copied from interface: RStreamAsync
        Appends a new entry by specified Stream ID. Trims stream to a specified trimLen size. If trimStrict is false then trims to few tens of entries more than specified length to trim.
        Specified by:
        addAsync in interface RStreamAsync<K,​V>
        Parameters:
        id - - Stream ID
        key - - key of entry
        value - - value of entry
        trimLen - - length to trim
        trimStrict - - if false then trims to few tens of entries more than specified length to trim
        Returns:
        void
      • add

        public StreamMessageId add​(K key,
                                   V value)
        Description copied from interface: RStream
        Appends a new entry and returns generated Stream Message ID
        Specified by:
        add in interface RStream<K,​V>
        Parameters:
        key - - key of entry
        value - - value of entry
        Returns:
        Stream Message ID
      • add

        public void add​(StreamMessageId id,
                        K key,
                        V value)
        Description copied from interface: RStream
        Appends a new entry by specified Stream Message ID
        Specified by:
        add in interface RStream<K,​V>
        Parameters:
        id - - Stream Message ID
        key - - key of entry
        value - - value of entry
      • add

        public StreamMessageId add​(K key,
                                   V value,
                                   int trimLen,
                                   boolean trimStrict)
        Description copied from interface: RStream
        Appends a new entry and returns generated Stream Message ID. Trims stream to a specified trimLen size. If trimStrict is false then trims to few tens of entries more than specified length to trim.
        Specified by:
        add in interface RStream<K,​V>
        Parameters:
        key - - key of entry
        value - - value of entry
        trimLen - - length to trim
        trimStrict - - if false then trims to few tens of entries more than specified length to trim
        Returns:
        Stream Message ID
      • add

        public void add​(StreamMessageId id,
                        K key,
                        V value,
                        int trimLen,
                        boolean trimStrict)
        Description copied from interface: RStream
        Appends a new entry by specified Stream Message ID. Trims stream to a specified trimLen size. If trimStrict is false then trims to few tens of entries more than specified length to trim.
        Specified by:
        add in interface RStream<K,​V>
        Parameters:
        id - - Stream Message ID
        key - - key of entry
        value - - value of entry
        trimLen - - length to trim
        trimStrict - - if false then trims to few tens of entries more than specified length to trim
      • read

        public Map<StreamMessageId,​Map<K,​V>> read​(int count,
                                                              long timeout,
                                                              TimeUnit unit,
                                                              StreamMessageId... ids)
        Description copied from interface: RStream
        Read stream data by specified collection of Stream Message IDs. Wait for stream data availability for specified timeout interval.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        ids - - collection of Stream Message IDs
        Returns:
        stream data mapped by Stream Message ID
      • read

        public Map<StreamMessageId,​Map<K,​V>> read​(int count,
                                                              StreamMessageId... ids)
        Description copied from interface: RStream
        Read stream data by specified collection of Stream Message IDs.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        ids - - collection of Stream Message IDs
        Returns:
        stream data mapped by Stream Message ID
      • readAsync

        public RFuture<Map<StreamMessageId,​Map<K,​V>>> readAsync​(int count,
                                                                            long timeout,
                                                                            TimeUnit unit,
                                                                            StreamMessageId... ids)
        Description copied from interface: RStreamAsync
        Read stream data by specified collection of Stream IDs. Wait for stream data availability for specified timeout interval.
        Specified by:
        readAsync in interface RStreamAsync<K,​V>
        Parameters:
        count - - stream data size limit
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        ids - - collection of Stream IDs
        Returns:
        stream data mapped by Stream ID
      • rangeAsync

        public RFuture<Map<StreamMessageId,​Map<K,​V>>> rangeAsync​(int count,
                                                                             StreamMessageId startId,
                                                                             StreamMessageId endId)
        Description copied from interface: RStreamAsync
        Read stream data in range by specified start Stream ID (included) and end Stream ID (included).
        Specified by:
        rangeAsync in interface RStreamAsync<K,​V>
        Parameters:
        count - - stream data size limit
        startId - - start Stream ID
        endId - - end Stream ID
        Returns:
        stream data mapped by Stream ID
      • range

        public Map<StreamMessageId,​Map<K,​V>> range​(int count,
                                                               StreamMessageId startId,
                                                               StreamMessageId endId)
        Description copied from interface: RStream
        Read stream data in range by specified start Stream Message ID (included) and end Stream Message ID (included).
        Specified by:
        range in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        startId - - start Stream Message ID
        endId - - end Stream Message ID
        Returns:
        stream data mapped by Stream Message ID
      • rangeReversedAsync

        public RFuture<Map<StreamMessageId,​Map<K,​V>>> rangeReversedAsync​(int count,
                                                                                     StreamMessageId startId,
                                                                                     StreamMessageId endId)
        Description copied from interface: RStreamAsync
        Read stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).
        Specified by:
        rangeReversedAsync in interface RStreamAsync<K,​V>
        Parameters:
        count - - stream data size limit
        startId - - start Stream ID
        endId - - end Stream ID
        Returns:
        stream data mapped by Stream ID
      • rangeReversed

        public Map<StreamMessageId,​Map<K,​V>> rangeReversed​(int count,
                                                                       StreamMessageId startId,
                                                                       StreamMessageId endId)
        Description copied from interface: RStream
        Read stream data in reverse order in range by specified start Stream Message ID (included) and end Stream Message ID (included).
        Specified by:
        rangeReversed in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        startId - - start Stream Message ID
        endId - - end Stream Message ID
        Returns:
        stream data mapped by Stream Message ID
      • readAsync

        public RFuture<Map<StreamMessageId,​Map<K,​V>>> readAsync​(long timeout,
                                                                            TimeUnit unit,
                                                                            StreamMessageId... ids)
        Description copied from interface: RStreamAsync
        Read stream data by specified collection of Stream IDs. Wait for stream data availability for specified timeout interval.
        Specified by:
        readAsync in interface RStreamAsync<K,​V>
        Parameters:
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        ids - - collection of Stream IDs
        Returns:
        stream data mapped by Stream ID
      • read

        public Map<StreamMessageId,​Map<K,​V>> read​(StreamMessageId... ids)
        Description copied from interface: RStream
        Read stream data by specified collection of Stream Message IDs.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        ids - - collection of Stream Message IDs
        Returns:
        stream data mapped by Stream Message ID
      • read

        public Map<StreamMessageId,​Map<K,​V>> read​(long timeout,
                                                              TimeUnit unit,
                                                              StreamMessageId... ids)
        Description copied from interface: RStream
        Read stream data by specified collection of Stream Message IDs. Wait for stream data availability for specified timeout interval.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        timeout - - time interval to wait for stream data availability
        unit - - time interval unit
        ids - - collection of Stream Message IDs
        Returns:
        stream data mapped by Stream Message ID
      • range

        public Map<StreamMessageId,​Map<K,​V>> range​(StreamMessageId startId,
                                                               StreamMessageId endId)
        Description copied from interface: RStream
        Read stream data in range by specified start Stream Message ID (included) and end Stream Message ID (included).
        Specified by:
        range in interface RStream<K,​V>
        Parameters:
        startId - - start Stream Message ID
        endId - - end Stream Message ID
        Returns:
        stream data mapped by Stream Message ID
      • rangeReversed

        public Map<StreamMessageId,​Map<K,​V>> rangeReversed​(StreamMessageId startId,
                                                                       StreamMessageId endId)
        Description copied from interface: RStream
        Read stream data in reverse order in range by specified start Stream Message ID (included) and end Stream Message ID (included).
        Specified by:
        rangeReversed in interface RStream<K,​V>
        Parameters:
        startId - - start Stream Message ID
        endId - - end Stream Message ID
        Returns:
        stream data mapped by Stream Message ID
      • remove

        public long remove​(StreamMessageId... ids)
        Description copied from interface: RStream
        Removes messages by id.
        Specified by:
        remove in interface RStream<K,​V>
        Parameters:
        ids - - id of messages to remove
        Returns:
        deleted messages amount
      • trimAsync

        public RFuture<Long> trimAsync​(int count)
        Description copied from interface: RStreamAsync
        Trims stream to specified size
        Specified by:
        trimAsync in interface RStreamAsync<K,​V>
        Parameters:
        count - - new size of stream
        Returns:
        number of deleted messages
      • trimNonStrictAsync

        public RFuture<Long> trimNonStrictAsync​(int count)
        Description copied from interface: RStreamAsync
        Trims stream to few tens of entries more than specified length to trim.
        Specified by:
        trimNonStrictAsync in interface RStreamAsync<K,​V>
        Parameters:
        count - - new size of stream
        Returns:
        number of deleted messages
      • trim

        public long trim​(int count)
        Description copied from interface: RStream
        Trims stream to specified size
        Specified by:
        trim in interface RStream<K,​V>
        Parameters:
        count - - new size of stream
        Returns:
        number of deleted messages
      • trimNonStrict

        public long trimNonStrict​(int count)
        Description copied from interface: RStream
        Trims stream to few tens of entries more than specified length to trim.
        Specified by:
        trimNonStrict in interface RStream<K,​V>
        Parameters:
        count - - new size of stream
        Returns:
        number of deleted messages
      • removeGroup

        public void removeGroup​(String groupName)
        Description copied from interface: RStream
        Removes group by name.
        Specified by:
        removeGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
      • removeConsumerAsync

        public RFuture<Long> removeConsumerAsync​(String groupName,
                                                 String consumerName)
        Description copied from interface: RStreamAsync
        Removes consumer of the group by name.
        Specified by:
        removeConsumerAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        Returns:
        number of pending messages owned by consumer
      • removeConsumer

        public long removeConsumer​(String groupName,
                                   String consumerName)
        Description copied from interface: RStream
        Removes consumer of the group by name.
        Specified by:
        removeConsumer in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        Returns:
        number of pending messages owned by consumer
      • updateGroupMessageId

        public void updateGroupMessageId​(String groupName,
                                         StreamMessageId id)
        Description copied from interface: RStream
        Updates next message id delivered to consumers.
        Specified by:
        updateGroupMessageId in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        id - - Stream Message ID
      • expire

        public boolean expire​(long timeToLive,
                              TimeUnit timeUnit)
        Description copied from interface: RExpirable
        Set a timeout for object. After the timeout has expired, the key will automatically be deleted.
        Specified by:
        expire in interface RExpirable
        Parameters:
        timeToLive - - timeout before object will be deleted
        timeUnit - - timeout time unit
        Returns:
        true if the timeout was set and false if not
      • expireAsync

        public RFuture<Boolean> expireAsync​(long timeToLive,
                                            TimeUnit timeUnit)
        Description copied from interface: RExpirableAsync
        Set a timeout for object in async mode. After the timeout has expired, the key will automatically be deleted.
        Specified by:
        expireAsync in interface RExpirableAsync
        Parameters:
        timeToLive - - timeout before object will be deleted
        timeUnit - - timeout time unit
        Returns:
        true if the timeout was set and false if not
      • expireAt

        public boolean expireAt​(long timestamp)
        Description copied from interface: RExpirable
        Set an expire date for object. When expire date comes the key will automatically be deleted.
        Specified by:
        expireAt in interface RExpirable
        Parameters:
        timestamp - - expire date in milliseconds (Unix timestamp)
        Returns:
        true if the timeout was set and false if not
      • expireAtAsync

        public RFuture<Boolean> expireAtAsync​(long timestamp)
        Description copied from interface: RExpirableAsync
        Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.
        Specified by:
        expireAtAsync in interface RExpirableAsync
        Parameters:
        timestamp - - expire date in milliseconds (Unix timestamp)
        Returns:
        true if the timeout was set and false if not
      • expireAt

        public boolean expireAt​(Date timestamp)
        Description copied from interface: RExpirable
        Set an expire date for object. When expire date comes the key will automatically be deleted.
        Specified by:
        expireAt in interface RExpirable
        Parameters:
        timestamp - - expire date
        Returns:
        true if the timeout was set and false if not
      • expireAtAsync

        public RFuture<Boolean> expireAtAsync​(Date timestamp)
        Description copied from interface: RExpirableAsync
        Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.
        Specified by:
        expireAtAsync in interface RExpirableAsync
        Parameters:
        timestamp - - expire date
        Returns:
        true if the timeout was set and false if not
      • clearExpire

        public boolean clearExpire()
        Description copied from interface: RExpirable
        Clear an expire timeout or expire date for object.
        Specified by:
        clearExpire in interface RExpirable
        Returns:
        true if timeout was removed false if object does not exist or does not have an associated timeout
      • clearExpireAsync

        public RFuture<Boolean> clearExpireAsync()
        Description copied from interface: RExpirableAsync
        Clear an expire timeout or expire date for object in async mode. Object will not be deleted.
        Specified by:
        clearExpireAsync in interface RExpirableAsync
        Returns:
        true if the timeout was cleared and false if not
      • remainTimeToLive

        public long remainTimeToLive()
        Description copied from interface: RExpirable
        Remaining time to live of Redisson object that has a timeout
        Specified by:
        remainTimeToLive in interface RExpirable
        Returns:
        time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
      • remainTimeToLiveAsync

        public RFuture<Long> remainTimeToLiveAsync()
        Description copied from interface: RExpirableAsync
        Remaining time to live of Redisson object that has a timeout
        Specified by:
        remainTimeToLiveAsync in interface RExpirableAsync
        Returns:
        time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.