| 构造器和说明 |
|---|
Task(String serverHost,
int serverPort,
Cipher cipher,
String token,
Key key,
String connectionId,
int workerNum) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRequest(RPCMessage msg)
Description: 把交易信息添加给 request
|
RpcClient |
getClient() |
boolean |
isStatus() |
RPCResult |
poll(String messageId)
Description: 获取交易
|
void |
returnClient(RpcClient client) |
void |
start() |
void |
stop() |
public void addRequest(RPCMessage msg)
msg - public boolean isStatus()
public void start()
public void stop()
public RpcClient getClient() throws IOException, Exception
IOExceptionExceptionpublic void returnClient(RpcClient client)
Copyright © 2019. All Rights Reserved.