Package io.vertx.mutiny.redis.client
Class Request
- java.lang.Object
-
- io.vertx.mutiny.redis.client.Request
-
public class Request extends Object
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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Request>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Request
arg(boolean arg)
Request
arg(byte arg)
Request
arg(byte[] arg)
Request
arg(double arg)
Request
arg(float arg)
Request
arg(int arg)
Request
arg(long arg)
Request
arg(short arg)
Request
arg(io.vertx.core.json.JsonArray arg)
Request
arg(io.vertx.core.json.JsonObject arg)
Request
arg(Buffer arg)
Request
arg(String arg)
Request
arg(String arg, String enc)
static Request
cmd(Command command)
static Request
cmd(Command command, Object[] args)
Command
command()
boolean
equals(Object o)
io.vertx.redis.client.Request
getDelegate()
int
hashCode()
static Request
newInstance(io.vertx.redis.client.Request arg)
Request
nullArg()
Deprecated.REDIS does not supportnull
as a parameter, only as response.String
toString()
-
-
-
Constructor Detail
-
Request
public Request(io.vertx.redis.client.Request delegate)
-
Request
public Request(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.redis.client.Request getDelegate()
-
cmd
public static Request cmd(Command command)
- Parameters:
command
- the command to use- Returns:
- a new request instance
-
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 supportnull
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 anull
encoded string. Redis does not allow storing thenull
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 ofJsonObject
andJsonArray
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 useargs
- 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)
-
-