Class XAutoClaimArgs.Builder

    • Method Detail

      • justid

        public static <K> XAutoClaimArgs<K> justid​(Consumer<K> consumer,
                                                   long minIdleTime,
                                                   String startId)
        Creates new XAutoClaimArgs and set the JUSTID flag to return just the message id and do not increment the retry counter. The message body is not returned when calling XAUTOCLAIM.
        Type Parameters:
        K -
        Parameters:
        consumer -
        minIdleTime -
        startId -
        Returns:
        new XAutoClaimArgs with minIdleTime and startId configured.
      • justid

        public static <K> XAutoClaimArgs<K> justid​(Consumer<K> consumer,
                                                   Duration minIdleTime,
                                                   String startId)
        Creates new XAutoClaimArgs and set the JUSTID flag to return just the message id and do not increment the retry counter. The message body is not returned when calling XAUTOCLAIM.
        Type Parameters:
        K -
        Parameters:
        consumer -
        minIdleTime -
        startId -
        Returns:
        new XAutoClaimArgs with minIdleTime and startId configured.
      • xautoclaim

        public static <K> XAutoClaimArgs<K> xautoclaim​(Consumer<K> consumer,
                                                       long minIdleTime,
                                                       String startId)
        Creates new XAutoClaimArgs.
        Type Parameters:
        K -
        Parameters:
        consumer -
        minIdleTime -
        startId -
        Returns:
        new XAutoClaimArgs with minIdleTime and startId configured.