| Modifier and Type | Field and Description |
|---|---|
static MultiType |
EMPTY_MAP |
static MultiType |
EMPTY_MULTI |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Response reply)
Adds a reply to the current response as it gets parsed from the wire.
|
boolean |
complete()
Signals that we received all required replies.
|
boolean |
containsKey(String key)
Does this multi response contains a string key.
|
static MultiType |
create(long length,
boolean asMap) |
Response |
get(int index)
Get this multi response value at a numerical index.
|
Response |
get(String key)
Get this multi response value at a string key.
|
Set<String> |
getKeys()
Get this multi response keys from a hash.
|
Iterator<Response> |
iterator()
Return an iterator so it can be iterated using the foreach construct.
|
int |
size()
Get this size of this multi response.
|
String |
toString()
Get this response as a String.
|
ResponseType |
type()
The response return type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitattributes, stream, toBigInteger, toBoolean, toBuffer, toByte, toBytes, toDouble, toFloat, toInteger, toLong, toNumber, toShort, toStringforEach, spliteratorpublic static final MultiType EMPTY_MULTI
public static final MultiType EMPTY_MAP
public static MultiType create(long length, boolean asMap)
public ResponseType type()
Responsepublic void add(Response reply)
Multipublic boolean complete()
Multipublic Response get(int index)
Responsepublic Response get(String key)
Responsepublic boolean containsKey(String key)
ResponsecontainsKey in interface Responsekey - the required key.public Set<String> getKeys()
Responsepublic int size()
Responsepublic String toString()
ResponseCopyright © 2021. All rights reserved.