Class StreamClaimOptions.StreamClaimOptionsBuilder

  • Enclosing class:
    StreamClaimOptions

    public static class StreamClaimOptions.StreamClaimOptionsBuilder
    extends java.lang.Object
    • Method Detail

      • force

        public StreamClaimOptions.StreamClaimOptionsBuilder force()
        Creates the pending message entry in the PEL even if certain specified IDs are not already in the PEL assigned to a different client. However, the message must exist in the stream, otherwise the IDs of non-existing messages are ignored.
      • idle

        public StreamClaimOptions.StreamClaimOptionsBuilder idle​(java.lang.Long idle)
        Set the idle time (last time it was delivered) of the message in milliseconds. If idle is not specified, an idle of 0 is assumed, that is, the time count is reset because the message now has a new owner trying to process it.
        Returns:
        this.
      • idleUnixTime

        public StreamClaimOptions.StreamClaimOptionsBuilder idleUnixTime​(java.lang.Long idleUnixTime)
        This is the same as idle but instead of a relative amount of milliseconds, it sets the idle time to a specific Unix time (in milliseconds). This is useful in order to rewrite the AOF file generating XCLAIM commands.
        Returns:
        this.
      • isForce

        public StreamClaimOptions.StreamClaimOptionsBuilder isForce​(boolean isForce)
        Creates the pending message entry in the PEL even if certain specified IDs are not already in the PEL assigned to a different client. However, the message must exist in the stream, otherwise the IDs of non-existing messages are ignored.
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object