| Package | Description |
|---|---|
| org.zbus.remoting | |
| org.zbus.remoting.callback | |
| org.zbus.remoting.nio |
| Modifier and Type | Field and Description |
|---|---|
protected Session |
RemotingClient.session |
| Modifier and Type | Method and Description |
|---|---|
protected Session |
RemotingClient.doConnect() |
Session |
RemotingClient.getSession() |
| Modifier and Type | Method and Description |
|---|---|
void |
MessageHandler.handleMessage(Message msg,
Session sess) |
void |
ClientEventAdaptor.onException(Throwable e,
Session sess) |
void |
ServerEventAdaptor.onMessage(Object obj,
Session sess) |
void |
ClientEventAdaptor.onMessage(Object obj,
Session sess) |
void |
ClientEventAdaptor.onSessionConnected(Session sess) |
| Modifier and Type | Method and Description |
|---|---|
void |
ConnectedCallback.onConnected(Session sess) |
void |
ErrorCallback.onError(IOException e,
Session sess) |
void |
MessageCallback.onMessage(Message msg,
Session sess) |
| Modifier and Type | Method and Description |
|---|---|
void |
EventAdaptor.onException(Throwable e,
Session sess)
Session各类错误发生时回调
|
abstract void |
EventAdaptor.onMessage(Object msg,
Session sess)
Session接受到消息
|
void |
EventAdaptor.onSessionAccepted(Session sess)
服务器端侦听到链接接入回调,此时Session尚未注册,默认注册该Session
|
void |
EventAdaptor.onSessionConnected(Session sess)
客户端链接成功后(Engine注册已经完成)回调
|
void |
EventAdaptor.onSessionDestroyed(Session sess)
Session注销前回调
|
void |
EventAdaptor.onSessionRegistered(Session sess)
Session注册到Engine成功后回调
|
void |
Dispatcher.registerChannel(SelectableChannel channel,
int ops,
Session sess) |
void |
DispatcherManager.registerSession(int ops,
Session sess) |
void |
Dispatcher.registerSession(int ops,
Session sess) |
void |
Dispatcher.unregisterSession(Session sess) |
Copyright © 2015. All rights reserved.