public class Request extends Publisher<Request.events>
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
Request.Builder<T> |
static interface |
Request.events<T> |
static class |
Request.Manager<T> |
static interface |
Request.OnError |
static interface |
Request.OnResponse |
static interface |
Request.OnSuccess |
static interface |
Request.OnTimeout |
Publisher.Callback<T>, Publisher.ErrBack<T>| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CLOSED_LEDGER |
Command |
cmd |
int |
id |
static Logger |
logger |
static int |
OPEN_LEDGER |
Response |
response |
long |
sendTime |
static long |
TIME_OUT |
static int |
VALIDATED_LEDGER |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bumpSendTime()
bumpSendTime
|
void |
handleResponse(org.json.JSONObject msg)
handleResponse
|
org.json.JSONObject |
json()
Get json.
|
void |
json(org.json.JSONObject jsonObject) |
void |
json(String key,
Object value)
Create json value.
|
org.json.JSONObject |
jsonRepr()
jsonRepr
|
void |
request()
Request.
|
org.json.JSONObject |
toJSON()
toJSON
|
clearAllListeners, emit, execute, on, on, once, once, removeListenerpublic static final Logger logger
public static final long TIME_OUT
public static final int VALIDATED_LEDGER
public static final int CLOSED_LEDGER
public static final int OPEN_LEDGER
public Command cmd
public Response response
public int id
public long sendTime
public void json(org.json.JSONObject jsonObject)
public org.json.JSONObject json()
public void request()
public void bumpSendTime()
public org.json.JSONObject toJSON()
public org.json.JSONObject jsonRepr()
public void handleResponse(org.json.JSONObject msg)
msg - msgCopyright © 2021. All rights reserved.