Package io.vertx.mutiny.redis.client
Class Response
java.lang.Object
io.vertx.mutiny.redis.client.Response
- All Implemented Interfaces:
MutinyDelegate
,Iterable<Response>
The response received from the REDIS server. Redis responses can have several representations:
- simple string - C string
- integer - 64bit integer value
- bulk - byte array
- multi - list
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) boolean
format()
get
(int index) io.vertx.redis.client.Response
getKeys()
int
hashCode()
boolean
isArray()
boolean
isMap()
iterator()
static Response
newInstance
(io.vertx.redis.client.Response arg) int
size()
toBuffer()
toByte()
byte[]
toBytes()
toDouble()
toFloat()
toLong()
io.smallrye.mutiny.Multi<Response>
toMulti()
toNumber()
toShort()
toString()
io.vertx.redis.client.ResponseType
type()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Response
public Response(io.vertx.redis.client.Response delegate) -
Response
-
-
Method Details
-
getDelegate
public io.vertx.redis.client.Response getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
equals
-
hashCode
public int hashCode() -
iterator
-
toMulti
-
type
public io.vertx.redis.client.ResponseType type()- Returns:
- the type.
-
attributes
- Returns:
- the a key value map of attributes to this response.
-
toString
-
format
- Returns:
-
toDouble
- Returns:
- double value.
-
toFloat
- Returns:
- double value.
-
toLong
- Returns:
- long value.
-
toInteger
- Returns:
- int value.
-
toShort
- Returns:
- short value.
-
toByte
- Returns:
- byte value.
-
toBoolean
- Returns:
- boolean value.
-
toBuffer
- Returns:
- buffer value.
-
get
- Parameters:
index
- the required index.- Returns:
- Response value.
-
get
- Parameters:
key
- the required key.- Returns:
- Response value.
-
containsKey
- Parameters:
key
- the required key.- Returns:
- Response value.
-
getKeys
- Returns:
- the set of keys.
-
size
public int size()- Returns:
- the size of the multi.
-
isArray
public boolean isArray()- Returns:
- whether this multi response is an array
-
isMap
public boolean isMap()- Returns:
- whether this multi response is a map
-
toNumber
- Returns:
- number value
-
toBigInteger
- Returns:
- long value.
-
toString
- Parameters:
encoding
-- Returns:
- String value.
-
toBytes
public byte[] toBytes()- Returns:
- byte[] value.
-
newInstance
-