Package io.lettuce.core
Class XReadArgs.Builder
- java.lang.Object
-
- io.lettuce.core.XReadArgs.Builder
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XReadArgs
block(long milliseconds)
Create a newXReadArgs
and set BLOCK.static XReadArgs
block(Duration timeout)
Create a newXReadArgs
and set BLOCK.static XReadArgs
count(long count)
Create a newXReadArgs
and set COUNT.static XReadArgs
noack()
Create a newXReadArgs
and set NOACK.static XReadArgs
noack(boolean noack)
Create a newXReadArgs
and set NOACK.
-
-
-
Method Detail
-
block
public static XReadArgs block(long milliseconds)
Create a newXReadArgs
and set BLOCK.- Parameters:
milliseconds
- time to block.- Returns:
- new
XReadArgs
with BLOCK set. - See Also:
XReadArgs.block(long)
-
block
public static XReadArgs block(Duration timeout)
Create a newXReadArgs
and set BLOCK.- Parameters:
timeout
- time to block.- Returns:
- new
XReadArgs
with BLOCK set. - See Also:
XReadArgs.block(Duration)
-
count
public static XReadArgs count(long count)
Create a newXReadArgs
and set COUNT.- Parameters:
count
-- Returns:
- new
XReadArgs
with COUNT set.
-
noack
public static XReadArgs noack()
Create a newXReadArgs
and set NOACK.- Returns:
- new
XReadArgs
with NOACK set. - See Also:
XReadArgs.noack(boolean)
-
noack
public static XReadArgs noack(boolean noack)
Create a newXReadArgs
and set NOACK.- Parameters:
noack
-- Returns:
- new
XReadArgs
with NOACK set. - See Also:
XReadArgs.noack(boolean)
-
-