Class Request

java.lang.Object
io.vertx.mutiny.redis.client.Request
All Implemented Interfaces:
MutinyDelegate

public class Request extends Object implements MutinyDelegate
Builder for REDIS requests that will be encoded according to the RESP protocol was introduced in Redis 1.2. Which became the standard way for talking with the Redis server in Redis 2.0. Redis protocol documentation states:
Clients send commands to a Redis server as a RESP Array of Bulk Strings.
So all non String/Bulk types will be encoded to Bulk for convenience.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • Request

      public Request(io.vertx.redis.client.Request delegate)
    • Request

      public Request(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.redis.client.Request getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • cmd

      public static Request cmd(Command command)
      Parameters:
      command - the command to use
      Returns:
      a new request instance
    • arg

      public Request arg(String arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(String arg, String enc)
      Parameters:
      arg -
      enc -
      Returns:
      self
    • arg

      public Request arg(Buffer arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(long arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(boolean arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(io.vertx.core.json.JsonObject arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(io.vertx.core.json.JsonArray arg)
      Parameters:
      arg -
      Returns:
      self
    • nullArg

      @Deprecated public Request nullArg()
      Deprecated.
      REDIS does not support null as a parameter, only as response. This was a deviation from the official protocol which should be avoided. Other clients explicitly do not allow this. Adds a null encoded string. Redis does not allow storing the null value by itself. This method will encode any null value as the four character long string "null". As a recommendation, this method should not be used directly unless this is the intented behavior. It is present to handle special cases such as encoding of JsonObject and JsonArray which may contain null values.
      Returns:
      self
    • command

      public Command command()
      Returns:
      the command.
    • cmd

      public static Request cmd(Command command, Object[] args)
      Parameters:
      command - the command to use
      args - the fixed list of arguments
      Returns:
      a new request instance
    • arg

      public Request arg(byte[] arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(int arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(short arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(byte arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(float arg)
      Parameters:
      arg -
      Returns:
      self
    • arg

      public Request arg(double arg)
      Parameters:
      arg -
      Returns:
      self
    • newInstance

      public static Request newInstance(io.vertx.redis.client.Request arg)