java.lang.Object
io.lettuce.core.XAutoClaimArgs.Builder
- Enclosing class:
- XAutoClaimArgs<K>
public static class XAutoClaimArgs.Builder extends Object
Builder entry points for
XAutoClaimArgs.-
Method Summary
Modifier and Type Method Description static <K> XAutoClaimArgs<K>justid(Consumer<K> consumer, long minIdleTime, String startId)Creates newXAutoClaimArgsand set theJUSTIDflag to return just the message id and do not increment the retry counter.static <K> XAutoClaimArgs<K>justid(Consumer<K> consumer, Duration minIdleTime, String startId)Creates newXAutoClaimArgsand set theJUSTIDflag to return just the message id and do not increment the retry counter.static <K> XAutoClaimArgs<K>xautoclaim(Consumer<K> consumer, long minIdleTime, String startId)Creates newXAutoClaimArgs.static <K> XAutoClaimArgs<K>xautoclaim(Consumer<K> consumer, Duration minIdleTime, String startId)Creates newXAutoClaimArgs.
-
Method Details
-
justid
Creates newXAutoClaimArgsand set theJUSTIDflag to return just the message id and do not increment the retry counter. The message body is not returned when callingXAUTOCLAIM.- Type Parameters:
K-- Parameters:
consumer-minIdleTime-startId-- Returns:
- new
XAutoClaimArgswithminIdleTimeandstartIdconfigured.
-
justid
public static <K> XAutoClaimArgs<K> justid(Consumer<K> consumer, Duration minIdleTime, String startId)Creates newXAutoClaimArgsand set theJUSTIDflag to return just the message id and do not increment the retry counter. The message body is not returned when callingXAUTOCLAIM.- Type Parameters:
K-- Parameters:
consumer-minIdleTime-startId-- Returns:
- new
XAutoClaimArgswithminIdleTimeandstartIdconfigured.
-
xautoclaim
public static <K> XAutoClaimArgs<K> xautoclaim(Consumer<K> consumer, long minIdleTime, String startId)Creates newXAutoClaimArgs.- Type Parameters:
K-- Parameters:
consumer-minIdleTime-startId-- Returns:
- new
XAutoClaimArgswithminIdleTimeandstartIdconfigured.
-
xautoclaim
public static <K> XAutoClaimArgs<K> xautoclaim(Consumer<K> consumer, Duration minIdleTime, String startId)Creates newXAutoClaimArgs.- Type Parameters:
K-- Parameters:
consumer-minIdleTime-startId-- Returns:
- new
XAutoClaimArgswithminIdleTimeandstartIdconfigured.
-