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)
Creates a new request command.
|
static Request |
cmd(Command command,
Object[] args)
|
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()
Deprecated.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<Request> __TYPE_ARG
public Request getDelegate()
public static Request cmd(Command command)
command
- the command to usepublic 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
- @Deprecated public Request nullArg()
public Command command()
public static Request cmd(Command command, Object[] args)
Number
, Boolean
, String
,
byte[]
or . This factory reduces the GC as it allocates the arguments array with
the right size.command
- the command to useargs
- the fixed list of argumentspublic 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 © 2023 Eclipse. All rights reserved.