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,
                                StreamId id)
        Description copied from interface: RStream
        Creates consumer group by name and stream id. Only new messages after defined stream id will be available for consumers of this group.

        StreamId.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 id
      • createGroupAsync

        public RFuture<Void> createGroupAsync​(String groupName,
                                              StreamId 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.

        StreamId.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,
                                      StreamId... 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,
                        StreamId... 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 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
      • listPendingAsync

        public RFuture<List<PendingEntry>> listPendingAsync​(String groupName,
                                                            StreamId startId,
                                                            StreamId endId,
                                                            int count,
                                                            String consumerName)
        Description copied from interface: RStreamAsync
        Returns list of pending messages by group name and consumer name. Limited by start stream id and end stream id and count.

        StreamId.MAX is used as max stream id StreamId.MIN is used as min stream id

        Specified by:
        listPendingAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        startId - - start stream id
        endId - - end stream id
        count - - amount of messages
        consumerName - - name of consumer
        Returns:
        list
      • listPendingAsync

        public RFuture<List<PendingEntry>> listPendingAsync​(String groupName,
                                                            StreamId startId,
                                                            StreamId endId,
                                                            int count)
        Description copied from interface: RStreamAsync
        Returns list of pending messages by group name. Limited by start stream id and end stream id and count.

        StreamId.MAX is used as max stream id StreamId.MIN is used as min stream id

        Specified by:
        listPendingAsync in interface RStreamAsync<K,​V>
        Parameters:
        groupName - - name of group
        startId - - start stream id
        endId - - end stream id
        count - - amount of messages
        Returns:
        list
      • listPending

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

        StreamId.MAX is used as max stream id StreamId.MIN is used as min stream id

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

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

        StreamId.MAX is used as max stream id StreamId.MIN is used as min stream id

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

        public RFuture<Map<StreamId,​Map<K,​V>>> claimAsync​(String groupName,
                                                                      String consumerName,
                                                                      long idleTime,
                                                                      TimeUnit idleTimeUnit,
                                                                      StreamId... 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:
      • claimPending

        public Map<StreamId,​Map<K,​V>> claimPending​(String groupName,
                                                               String consumerName,
                                                               long idleTime,
                                                               TimeUnit idleTimeUnit,
                                                               StreamId... 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:
        claimPending 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 ids
        Returns:
      • readGroupAsync

        public RFuture<Map<StreamId,​Map<K,​V>>> readGroupAsync​(String groupName,
                                                                          String consumerName,
                                                                          StreamId... 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<StreamId,​Map<K,​V>>> readGroupAsync​(String groupName,
                                                                          String consumerName,
                                                                          int count,
                                                                          StreamId... 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<StreamId,​Map<K,​V>>> readGroupAsync​(String groupName,
                                                                          String consumerName,
                                                                          long timeout,
                                                                          TimeUnit unit,
                                                                          StreamId... 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<StreamId,​Map<K,​V>>> readGroupAsync​(String groupName,
                                                                          String consumerName,
                                                                          int count,
                                                                          long timeout,
                                                                          TimeUnit unit,
                                                                          StreamId... 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<StreamId,​Map<K,​V>> readGroup​(String groupName,
                                                            String consumerName,
                                                            StreamId... ids)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName and specified collection of Stream IDs.
        Specified by:
        readGroup in interface RStream<K,​V>
        Parameters:
        groupName - - name of group
        consumerName - - name of consumer
        ids - - collection of Stream IDs
        Returns:
        stream data mapped by Stream ID
      • readGroup

        public Map<StreamId,​Map<K,​V>> readGroup​(String groupName,
                                                            String consumerName,
                                                            int count,
                                                            StreamId... ids)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName and specified collection of Stream 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 IDs
        Returns:
        stream data mapped by Stream ID
      • readGroup

        public Map<StreamId,​Map<K,​V>> readGroup​(String groupName,
                                                            String consumerName,
                                                            long timeout,
                                                            TimeUnit unit,
                                                            StreamId... ids)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName and specified collection of Stream IDs. Wait 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 IDs
        Returns:
        stream data mapped by Stream ID
      • readGroup

        public Map<StreamId,​Map<K,​V>> readGroup​(String groupName,
                                                            String consumerName,
                                                            int count,
                                                            long timeout,
                                                            TimeUnit unit,
                                                            StreamId... ids)
        Description copied from interface: RStream
        Read stream data from groupName by consumerName and specified collection of Stream IDs. Wait 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 IDs
        Returns:
        stream data mapped by Stream ID
      • addAll

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

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

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

        public RFuture<Void> addAllAsync​(StreamId id,
                                         Map<K,​V> entries)
        Description copied from interface: RStreamAsync
        Appends new entries by specified Stream ID
        Specified by:
        addAllAsync in interface RStreamAsync<K,​V>
        Parameters:
        id - - Stream ID
        entries - - entries to add
        Returns:
        void
      • addAll

        public StreamId addAll​(Map<K,​V> entries,
                               int trimLen,
                               boolean trimStrict)
        Description copied from interface: RStream
        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:
        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 ID
      • addAllAsync

        public RFuture<StreamId> 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​(StreamId id,
                           Map<K,​V> entries,
                           int trimLen,
                           boolean trimStrict)
        Description copied from interface: RStream
        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:
        addAll in interface RStream<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
      • addAllAsync

        public RFuture<Void> addAllAsync​(StreamId 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<StreamId,​Map<K,​V>> read​(int count,
                                                       StreamId... ids)
        Description copied from interface: RStream
        Read stream data by specified collection of Stream IDs.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        count - - stream data size limit
        ids - - collection of Stream IDs
        Returns:
        stream data mapped by Stream ID
      • readAsync

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

        public Map<StreamId,​Map<K,​V>> read​(int count,
                                                       long timeout,
                                                       TimeUnit unit,
                                                       StreamId... ids)
        Description copied from interface: RStream
        Read stream data by specified collection of Stream 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 IDs
        Returns:
        stream data mapped by Stream ID
      • readAsync

        public RFuture<Map<String,​Map<StreamId,​Map<K,​V>>>> readAsync​(int count,
                                                                                       long timeout,
                                                                                       TimeUnit unit,
                                                                                       StreamId id,
                                                                                       Map<String,​StreamId> 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<StreamId> 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​(StreamId 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<StreamId> 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​(StreamId 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 StreamId add​(K key,
                            V value)
        Description copied from interface: RStream
        Appends a new entry and returns generated Stream ID
        Specified by:
        add in interface RStream<K,​V>
        Parameters:
        key - - key of entry
        value - - value of entry
        Returns:
        Stream ID
      • add

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

        public StreamId add​(K key,
                            V value,
                            int trimLen,
                            boolean trimStrict)
        Description copied from interface: RStream
        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:
        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 ID
      • add

        public void add​(StreamId id,
                        K key,
                        V value,
                        int trimLen,
                        boolean trimStrict)
        Description copied from interface: RStream
        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:
        add in interface RStream<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
      • readAsync

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

        public RFuture<Map<StreamId,​Map<K,​V>>> readAsync​(int count,
                                                                     long timeout,
                                                                     TimeUnit unit,
                                                                     StreamId... 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
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(int count,
                                                                         StreamId id,
                                                                         Map<String,​StreamId> keyToId)
        Description copied from interface: RStream
        Read stream data by specified stream 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 id mapped by name
        Returns:
        stream data mapped by key and Stream ID
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(int count,
                                                                         long timeout,
                                                                         TimeUnit unit,
                                                                         StreamId id,
                                                                         Map<String,​StreamId> keyToId)
        Description copied from interface: RStream
        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:
        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 id mapped by name
        Returns:
        stream data mapped by key and Stream ID
      • rangeAsync

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

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

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

        public RFuture<Map<StreamId,​Map<K,​V>>> readAsync​(long timeout,
                                                                     TimeUnit unit,
                                                                     StreamId... 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
      • readAsync

        public RFuture<Map<String,​Map<StreamId,​Map<K,​V>>>> readAsync​(long timeout,
                                                                                       TimeUnit unit,
                                                                                       StreamId id,
                                                                                       Map<String,​StreamId> 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
      • rangeAsync

        public RFuture<Map<StreamId,​Map<K,​V>>> rangeAsync​(StreamId startId,
                                                                      StreamId 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:
        startId - - start Stream ID
        endId - - end Stream ID
        Returns:
        stream data mapped by Stream ID
      • rangeReversedAsync

        public RFuture<Map<StreamId,​Map<K,​V>>> rangeReversedAsync​(StreamId startId,
                                                                              StreamId 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:
        startId - - start Stream ID
        endId - - end Stream ID
        Returns:
        stream data mapped by Stream ID
      • read

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

        public Map<StreamId,​Map<K,​V>> read​(long timeout,
                                                       TimeUnit unit,
                                                       StreamId... ids)
        Description copied from interface: RStream
        Read stream data by specified collection of Stream 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 IDs
        Returns:
        stream data mapped by Stream ID
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(StreamId id,
                                                                         Map<String,​StreamId> keyToId)
        Description copied from interface: RStream
        Read stream data by specified stream id mapped by name including this stream.
        Specified by:
        read in interface RStream<K,​V>
        Parameters:
        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<StreamId,​Map<K,​V>>> read​(long timeout,
                                                                         TimeUnit unit,
                                                                         StreamId id,
                                                                         Map<String,​StreamId> keyToId)
        Description copied from interface: RStream
        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:
        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 id mapped by name
        Returns:
        stream data mapped by key and Stream ID
      • range

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

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

        public RFuture<Map<String,​Map<StreamId,​Map<K,​V>>>> readAsync​(StreamId id,
                                                                                       String key2,
                                                                                       StreamId id2)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream name including this stream.
        Specified by:
        readAsync in interface RStreamAsync<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 ID
      • readAsync

        public RFuture<Map<String,​Map<StreamId,​Map<K,​V>>>> readAsync​(StreamId id,
                                                                                       String key2,
                                                                                       StreamId id2,
                                                                                       String key3,
                                                                                       StreamId id3)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream names including this stream.
        Specified by:
        readAsync in interface RStreamAsync<K,​V>
        Parameters:
        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<StreamId,​Map<K,​V>>>> readAsync​(int count,
                                                                                       StreamId id,
                                                                                       String key2,
                                                                                       StreamId id2)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream name including this stream.
        Specified by:
        readAsync in interface RStreamAsync<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 ID
      • readAsync

        public RFuture<Map<String,​Map<StreamId,​Map<K,​V>>>> readAsync​(int count,
                                                                                       StreamId id,
                                                                                       String key2,
                                                                                       StreamId id2,
                                                                                       String key3,
                                                                                       StreamId id3)
        Description copied from interface: RStreamAsync
        Read stream data by specified stream names including this stream.
        Specified by:
        readAsync in interface RStreamAsync<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 ID
      • readAsync

        public RFuture<Map<String,​Map<StreamId,​Map<K,​V>>>> readAsync​(long timeout,
                                                                                       TimeUnit unit,
                                                                                       StreamId id,
                                                                                       String key2,
                                                                                       StreamId 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<StreamId,​Map<K,​V>>>> readAsync​(long timeout,
                                                                                       TimeUnit unit,
                                                                                       StreamId id,
                                                                                       String key2,
                                                                                       StreamId id2,
                                                                                       String key3,
                                                                                       StreamId 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
      • readAsync

        public RFuture<Map<String,​Map<StreamId,​Map<K,​V>>>> readAsync​(int count,
                                                                                       long timeout,
                                                                                       TimeUnit unit,
                                                                                       StreamId id,
                                                                                       String key2,
                                                                                       StreamId 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<StreamId,​Map<K,​V>>>> readAsync​(int count,
                                                                                       long timeout,
                                                                                       TimeUnit unit,
                                                                                       StreamId id,
                                                                                       String key2,
                                                                                       StreamId id2,
                                                                                       String key3,
                                                                                       StreamId 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
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(StreamId id,
                                                                         String key2,
                                                                         StreamId 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 ID
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(StreamId id,
                                                                         String key2,
                                                                         StreamId id2,
                                                                         String key3,
                                                                         StreamId 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:
        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<StreamId,​Map<K,​V>>> read​(int count,
                                                                         StreamId id,
                                                                         String key2,
                                                                         StreamId 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 ID
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(int count,
                                                                         StreamId id,
                                                                         String key2,
                                                                         StreamId id2,
                                                                         String key3,
                                                                         StreamId 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 ID
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(long timeout,
                                                                         TimeUnit unit,
                                                                         StreamId id,
                                                                         String key2,
                                                                         StreamId 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 ID
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(long timeout,
                                                                         TimeUnit unit,
                                                                         StreamId id,
                                                                         String key2,
                                                                         StreamId id2,
                                                                         String key3,
                                                                         StreamId 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 ID
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(int count,
                                                                         long timeout,
                                                                         TimeUnit unit,
                                                                         StreamId id,
                                                                         String key2,
                                                                         StreamId 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 ID
      • read

        public Map<String,​Map<StreamId,​Map<K,​V>>> read​(int count,
                                                                         long timeout,
                                                                         TimeUnit unit,
                                                                         StreamId id,
                                                                         String key2,
                                                                         StreamId id2,
                                                                         String key3,
                                                                         StreamId 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 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.