| Package | Description |
|---|---|
| org.zstacks.znet | |
| org.zstacks.znet.callback | |
| org.zstacks.znet.nio |
| Modifier and Type | Method and Description |
|---|---|
Session |
RemotingClient.getSession() |
| Modifier and Type | Method and Description |
|---|---|
void |
MessageHandler.handleMessage(Message msg,
Session sess) |
void |
RemotingClient.onException(Throwable e,
Session sess) |
void |
RemotingServer.onMessage(Object obj,
Session sess) |
void |
RemotingClient.onMessage(Object obj,
Session sess) |
void |
RemotingClient.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 |
|---|---|
Session |
Dispatcher.registerClientChannel(String host,
int port,
IoAdaptor ioAdaptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
IoAdaptor.onException(Throwable e,
Session sess)
Session各类错误发生时回调
|
void |
IoAdaptor.onMessage(Object msg,
Session sess)
Session接受到消息对象
|
void |
IoAdaptor.onSessionAccepted(Session sess)
服务器端侦听到链接接入回调,此时Session尚未注册,默认注册该Session
|
void |
IoAdaptor.onSessionConnected(Session sess)
客户端链接成功后回调
|
void |
IoAdaptor.onSessionDestroyed(Session sess)
Session注销前回调
|
void |
IoAdaptor.onSessionRegistered(Session sess)
Session注册到Dispatcher成功后回调
|
void |
SelectorThread.registerChannel(SelectableChannel channel,
int ops,
Session sess) |
void |
SelectorThread.registerSession(int ops,
Session sess) |
void |
Dispatcher.registerSession(int ops,
Session sess) |
void |
SelectorThread.unregisterSession(Session sess) |
Copyright © 2015. All rights reserved.