public class Request extends Object
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 RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Request> |
__TYPE_ARG |
Constructor and Description |
---|
Request(Object delegate) |
Request(Request delegate) |
Modifier and Type | Method and Description |
---|---|
Request |
arg(boolean arg)
Adds a boolean encoded to string
|
Request |
arg(Buffer arg)
Adds a String key argument
|
Request |
arg(byte arg)
Adds a byte encoded to string
|
Request |
arg(byte[] arg)
Adds a byte array
|
Request |
arg(double arg)
Adds a double encoded to string
|
Request |
arg(float arg)
Adds a float encoded to string
|
Request |
arg(int arg)
Adds a int encoded to string
|
Request |
arg(JsonArray arg)
Adds a JsonArray argument, the encoding will serialize the json as value0, value1, ...
|
Request |
arg(JsonObject arg)
Adds a JsonObject argument, the encoding will serialize the json as key0, value0, key1, value1, ...
|
Request |
arg(long arg)
Adds a long encoded to string
|
Request |
arg(short arg)
Adds a short encoded to string
|
Request |
arg(String arg)
Adds a String argument using UTF8 character encoding
|
Request |
arg(String arg,
String enc)
Adds a String using a specific character encoding argument
|
static Request |
cmd(Command command) |
Command |
command()
Get the Command that is to be used by this request.
|
boolean |
equals(Object o) |
Request |
getDelegate() |
int |
hashCode() |
static Request |
newInstance(Request arg) |
Request |
nullArg()
Adds a
null encoded string. |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<Request> __TYPE_ARG
public Request getDelegate()
public Request arg(String arg)
arg
- public Request arg(String arg, String enc)
arg
- enc
- public Request arg(long arg)
arg
- public Request arg(boolean arg)
arg
- public Request arg(JsonObject arg)
null
values will follow the encoding rules of nullArg()
.arg
- public Request arg(JsonArray arg)
null
values will follow the encoding rules of nullArg()
.arg
- public Request nullArg()
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 and which may contain null values.public Command command()
public Request arg(byte[] arg)
arg
- public Request arg(int arg)
arg
- public Request arg(short arg)
arg
- public Request arg(byte arg)
arg
- public Request arg(float arg)
arg
- public Request arg(double arg)
arg
- Copyright © 2021 Eclipse. All rights reserved.