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 TypeMethodDescriptionbooleancontainsKey(String key) booleanformat()get(int index) io.vertx.redis.client.ResponsegetKeys()inthashCode()booleanisArray()booleanisMap()iterator()static ResponsenewInstance(io.vertx.redis.client.Response arg) intsize()toBuffer()toByte()byte[]toBytes()toDouble()toFloat()toLong()io.smallrye.mutiny.Multi<Response>toMulti()toNumber()toShort()toString()io.vertx.redis.client.ResponseTypetype()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getDelegatein 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
-