Class StreamReadParams

java.lang.Object
org.redisson.api.stream.StreamReadParams
All Implemented Interfaces:
StreamReadArgs

public final class StreamReadParams extends Object implements StreamReadArgs
Author:
Nikita Koksharov
  • Method Details

    • count

      public StreamReadArgs count(int count)
      Description copied from interface: StreamReadArgs
      Defines stream data size limit.
      Specified by:
      count in interface StreamReadArgs
      Parameters:
      count - stream data size limit
      Returns:
      arguments object
    • timeout

      public StreamReadArgs timeout(Duration timeout)
      Description copied from interface: StreamReadArgs
      Defines time interval to wait for stream data availability. 0 is used to wait infinitely.
      Specified by:
      timeout in interface StreamReadArgs
      Parameters:
      timeout - timeout duration
      Returns:
      arguments object
    • getId1

      public StreamMessageId getId1()
    • getCount

      public int getCount()
    • getTimeout

      public Duration getTimeout()