Package io.vertx.mutiny.redis.client
Class Response
- java.lang.Object
-
- io.vertx.mutiny.redis.client.Response
-
public class Response extends Object implements 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 Modifier and Type Field Description static TypeArg<Response>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Response>
attributes()
boolean
containsKey(String key)
boolean
equals(Object o)
Response
get(int index)
Response
get(String key)
io.vertx.redis.client.Response
getDelegate()
Set<String>
getKeys()
int
hashCode()
Iterator<Response>
iterator()
static Response
newInstance(io.vertx.redis.client.Response arg)
int
size()
BigInteger
toBigInteger()
Boolean
toBoolean()
Buffer
toBuffer()
Byte
toByte()
byte[]
toBytes()
Double
toDouble()
Float
toFloat()
Integer
toInteger()
Long
toLong()
io.smallrye.mutiny.Multi<Response>
toMulti()
Number
toNumber()
Short
toShort()
String
toString()
String
toString(Charset encoding)
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
-
-
-
-
Constructor Detail
-
Response
public Response(io.vertx.redis.client.Response delegate)
-
Response
public Response(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.redis.client.Response getDelegate()
-
toMulti
public io.smallrye.mutiny.Multi<Response> toMulti()
-
type
public io.vertx.redis.client.ResponseType type()
- Returns:
- the type.
-
attributes
public Map<String,Response> attributes()
- Returns:
- the a key value map of attributes to this response.
-
toDouble
public Double toDouble()
- Returns:
- double value.
-
toFloat
public Float toFloat()
- Returns:
- double value.
-
toLong
public Long toLong()
- Returns:
- long value.
-
toInteger
public Integer toInteger()
- Returns:
- int value.
-
toShort
public Short toShort()
- Returns:
- short value.
-
toByte
public Byte toByte()
- Returns:
- byte value.
-
toBoolean
public Boolean toBoolean()
- Returns:
- boolean value.
-
toBuffer
public Buffer toBuffer()
- Returns:
- buffer value.
-
get
public Response get(int index)
- Parameters:
index
- the required index.- Returns:
- Response value.
-
containsKey
public boolean containsKey(String key)
- Parameters:
key
- the required key.- Returns:
- Response value.
-
size
public int size()
- Returns:
- the size of the multi.
-
toNumber
public Number toNumber()
- Returns:
- number value
-
toBigInteger
public BigInteger toBigInteger()
- Returns:
- long value.
-
toBytes
public byte[] toBytes()
- Returns:
- byte[] value.
-
newInstance
public static Response newInstance(io.vertx.redis.client.Response arg)
-
-