Module lettuce.core

Class BitFieldArgs.Builder

java.lang.Object
io.lettuce.core.BitFieldArgs.Builder
Enclosing class:
BitFieldArgs

public static class BitFieldArgs.Builder
extends Object
Builder entry points for BitFieldArgs.
  • Method Details

    • get

      public static BitFieldArgs get​(BitFieldArgs.BitFieldType bitFieldType, int offset)
      Create a new GET subcommand.
      Parameters:
      bitFieldType - the bit field type, must not be null.
      offset - bitfield offset
      Returns:
      a new GET subcommand for the given bitFieldType and offset.
    • get

      public static BitFieldArgs get​(BitFieldArgs.BitFieldType bitFieldType, BitFieldArgs.Offset offset)
      Create a new GET subcommand.
      Parameters:
      bitFieldType - the bit field type, must not be null.
      offset - bitfield offset, must not be null.
      Returns:
      a new GET subcommand for the given bitFieldType and offset.
      Since:
      4.3
    • set

      public static BitFieldArgs set​(BitFieldArgs.BitFieldType bitFieldType, int offset, long value)
      Create a new SET subcommand.
      Parameters:
      bitFieldType - the bit field type, must not be null.
      offset - bitfield offset
      value - the value
      Returns:
      a new SET subcommand for the given bitFieldType, offset and value.
    • set

      public static BitFieldArgs set​(BitFieldArgs.BitFieldType bitFieldType, BitFieldArgs.Offset offset, long value)
      Create a new SET subcommand.
      Parameters:
      bitFieldType - the bit field type, must not be null.
      offset - bitfield offset, must not be null.
      value - the value
      Returns:
      a new SET subcommand for the given bitFieldType, offset and value.
      Since:
      4.3
    • incrBy

      public static BitFieldArgs incrBy​(BitFieldArgs.BitFieldType bitFieldType, int offset, long value)
      Create a new INCRBY subcommand.
      Parameters:
      bitFieldType - the bit field type, must not be null.
      offset - bitfield offset
      value - the value
      Returns:
      a new INCRBY subcommand for the given bitFieldType, offset and value .
    • incrBy

      public static BitFieldArgs incrBy​(BitFieldArgs.BitFieldType bitFieldType, BitFieldArgs.Offset offset, long value)
      Create a new INCRBY subcommand.
      Parameters:
      bitFieldType - the bit field type, must not be null.
      offset - bitfield offset, must not be null.
      value - the value
      Returns:
      a new INCRBY subcommand for the given bitFieldType, offset and value .
      Since:
      4.3
    • overflow

      public static BitFieldArgs overflow​(BitFieldArgs.OverflowType overflowType)
      Adds a new OVERFLOW subcommand.
      Parameters:
      overflowType - type of overflow, must not be null.
      Returns:
      a new OVERFLOW subcommand for the given overflowType.