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
originalnon 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()booleancontainsKey(String key)booleanequals(Object o)Responseget(int index)Responseget(String key)io.vertx.redis.client.ResponsegetDelegate()Set<String>getKeys()inthashCode()Iterator<Response>iterator()static ResponsenewInstance(io.vertx.redis.client.Response arg)intsize()BigIntegertoBigInteger()BooleantoBoolean()BuffertoBuffer()BytetoByte()byte[]toBytes()DoubletoDouble()FloattoFloat()IntegertoInteger()LongtoLong()io.smallrye.mutiny.Multi<Response>toMulti()NumbertoNumber()ShorttoShort()StringtoString()StringtoString(Charset encoding)io.vertx.redis.client.ResponseTypetype()-
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)
-
-