public class WsonrpcClientImpl extends WsonrpcEndpoint implements WsonrpcClient, WsonrpcClientEndpoint
wsonrpcControl| 限定符 | 构造器和说明 |
|---|---|
protected |
WsonrpcClientImpl(WsonrpcClientConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect()
连接服务端,在连接上之前调用此方法的线程都将阻塞
|
int |
getConnectTimeout() |
ServiceRegistry |
getServiceRegistry() |
void |
onClose(int code,
String reason) |
void |
onError(Throwable error) |
void |
onMessage(byte[] bytes) |
void |
onOpen(WebSocketSession session) |
void |
setClientListener(WsonrpcClientListener listener) |
asyncInvoke, disconnect, getSession, getSessionId, invoke, invoke, isConnected, offline, online, ping, verifyOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpingdisconnect, getSessionId, isConnectedasyncInvoke, invoke, invokeprotected WsonrpcClientImpl(WsonrpcClientConfig config)
public void connect()
throws Exception
WsonrpcClientconnect 在接口中 WsonrpcClientExceptionpublic void onOpen(WebSocketSession session)
onOpen 在接口中 WsonrpcClientEndpointpublic void onMessage(byte[] bytes)
onMessage 在接口中 WsonrpcClientEndpointpublic void onError(Throwable error)
onError 在接口中 WsonrpcClientEndpointpublic void onClose(int code,
String reason)
onClose 在接口中 WsonrpcClientEndpointpublic ServiceRegistry getServiceRegistry()
getServiceRegistry 在接口中 WsonrpcClientpublic int getConnectTimeout()
getConnectTimeout 在接口中 WsonrpcClientEndpointpublic void setClientListener(WsonrpcClientListener listener)
setClientListener 在接口中 WsonrpcClientCopyright © 2017. All rights reserved.