| 限定符和类型 | 类和说明 |
|---|---|
class |
Submit.CrossChainArgs |
static class |
Submit.SchemaOpType |
static class |
Submit.SubmitState |
static class |
Submit.SyncCond |
static class |
Submit.SyncState |
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<org.json.JSONObject> |
cache |
protected Publisher.Callback<org.json.JSONObject> |
cb |
protected Submit.SyncCond |
condition |
Connection |
connection |
protected Submit.CrossChainArgs |
crossChainArgs |
protected EventManager |
eventManager |
protected int |
extraDrop |
protected Map<GenericPair<String,String>,String> |
mapToken |
protected Integer |
needVerify |
protected boolean |
schemaCreateTx |
protected boolean |
schemaModifyTx |
protected SignedTransaction |
signed |
protected boolean |
strictMode |
protected boolean |
transaction |
| 构造器和说明 |
|---|
Submit() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.json.JSONObject |
doSubmit() |
protected org.json.JSONObject |
doSubmitNoPrepare() |
EventManager |
eventManager() |
protected org.json.JSONArray |
getTableArray(String tableName) |
boolean |
isCrossChainArgsSet() |
protected boolean |
mapError(Map<String,Object> map) |
protected abstract org.json.JSONObject |
prepareSigned() |
void |
setCrossChainArgs(String originalAddress,
int txnLedgerSeq,
String curTxHash,
String futureHash) |
void |
setCrossChainArgs(Submit.CrossChainArgs args) |
void |
setNeedVerify(boolean flag) |
void |
setRestrict(boolean falg)
Set restrict mode.
|
org.json.JSONObject |
submit()
submit a transaction,return immediately
|
org.json.JSONObject |
submit(Publisher.Callback<org.json.JSONObject> cb)
asynchronous,callback trigger with all possible status
|
org.json.JSONObject |
submit(Submit.SyncCond cond)
synchronous,return when condition satisfied or submit failed
|
protected Transaction |
toTransaction(org.json.JSONObject json,
TransactionType type)
Translate to transaction type.
|
public Connection connection
protected Publisher.Callback<org.json.JSONObject> cb
protected Submit.SyncCond condition
protected SignedTransaction signed
protected Submit.CrossChainArgs crossChainArgs
protected EventManager eventManager
protected List<org.json.JSONObject> cache
protected Map<GenericPair<String,String>,String> mapToken
protected boolean transaction
protected boolean schemaCreateTx
protected boolean schemaModifyTx
protected Integer needVerify
protected boolean strictMode
protected int extraDrop
public void setRestrict(boolean falg)
falg - True to enable restrict mode and false to disable restrict mode.public void setNeedVerify(boolean flag)
public org.json.JSONObject submit(Publisher.Callback<org.json.JSONObject> cb)
cb - Callback.public org.json.JSONObject submit(Submit.SyncCond cond)
cond,return - conditionpublic org.json.JSONObject submit()
public void setCrossChainArgs(String originalAddress, int txnLedgerSeq, String curTxHash, String futureHash)
public void setCrossChainArgs(Submit.CrossChainArgs args)
public boolean isCrossChainArgsSet()
protected abstract org.json.JSONObject prepareSigned()
public EventManager eventManager()
protected org.json.JSONObject doSubmit()
protected org.json.JSONObject doSubmitNoPrepare()
protected org.json.JSONArray getTableArray(String tableName)
protected Transaction toTransaction(org.json.JSONObject json, TransactionType type) throws Exception
json - tx_json.type - Transaction type.Exception - Exception to be throws.Copyright © 2021. All rights reserved.