Package io.vertx.mutiny.redis.client
Class Request
java.lang.Object
io.vertx.mutiny.redis.client.Request
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarg
(boolean arg) arg
(byte arg) arg
(byte[] arg) arg
(double arg) arg
(float arg) arg
(int arg) arg
(long arg) arg
(short arg) arg
(io.vertx.core.json.JsonArray arg) arg
(io.vertx.core.json.JsonObject arg) static Request
static Request
command()
boolean
io.vertx.redis.client.Request
int
hashCode()
static Request
newInstance
(io.vertx.redis.client.Request arg) nullArg()
Deprecated.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Request
public Request(io.vertx.redis.client.Request delegate) -
Request
-
-
Method Details
-
getDelegate
public io.vertx.redis.client.Request getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
cmd
- Parameters:
command
- the command to use- Returns:
- a new request instance
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-enc
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
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
- Returns:
- the command.
-
cmd
- Parameters:
command
- the command to useargs
- the fixed list of arguments- Returns:
- a new request instance
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
arg
- Parameters:
arg
-- Returns:
- self
-
newInstance
-
null
as a parameter, only as response.