public class NioRpcSynResponseClient extends NioAbstractClient
nioRpcClient| 构造器和说明 |
|---|
NioRpcSynResponseClient(NioRpcClient nioRpcClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
sendAndReturn(java.lang.String message)
Send message and get response.
|
java.lang.String |
sendAndReturn(java.lang.String message,
long timeMillis)
Send message and get response.
|
close, getNioRpcClient, isActive, setNioRpcClientpublic NioRpcSynResponseClient(NioRpcClient nioRpcClient)
public java.lang.String sendAndReturn(java.lang.String message)
throws java.lang.InterruptedException
message - messagejava.lang.InterruptedException - InterruptedExceptionpublic java.lang.String sendAndReturn(java.lang.String message,
long timeMillis)
throws java.lang.InterruptedException
message - messagejava.lang.InterruptedException - InterruptedExceptionCopyright © 2019. All Rights Reserved.