public class TcpAioServer extends ServerBase<TcpAioChannelAssistant> implements org.smartboot.socket.MessageProcessor<Frame>, org.smartboot.socket.NetMonitor
| 构造器和说明 |
|---|
TcpAioServer(ServerConfig serverConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterRead(org.smartboot.socket.transport.AioSession aioSession,
int i) |
void |
afterWrite(org.smartboot.socket.transport.AioSession aioSession,
int i) |
void |
beforeRead(org.smartboot.socket.transport.AioSession aioSession) |
void |
beforeWrite(org.smartboot.socket.transport.AioSession aioSession) |
void |
process(org.smartboot.socket.transport.AioSession s,
Frame frame) |
AsynchronousSocketChannel |
shouldAccept(AsynchronousSocketChannel asynchronousSocketChannel) |
void |
start() |
void |
stateEvent(org.smartboot.socket.transport.AioSession s,
org.smartboot.socket.StateMachineEnum state,
Throwable e) |
void |
stop() |
public TcpAioServer(ServerConfig serverConfig)
public void stop()
throws IOException
stop 在接口中 ServerIOExceptionpublic void process(org.smartboot.socket.transport.AioSession s,
Frame frame)
process 在接口中 org.smartboot.socket.MessageProcessor<Frame>public void stateEvent(org.smartboot.socket.transport.AioSession s,
org.smartboot.socket.StateMachineEnum state,
Throwable e)
stateEvent 在接口中 org.smartboot.socket.MessageProcessor<Frame>public AsynchronousSocketChannel shouldAccept(AsynchronousSocketChannel asynchronousSocketChannel)
shouldAccept 在接口中 org.smartboot.socket.NetMonitorpublic void afterRead(org.smartboot.socket.transport.AioSession aioSession,
int i)
afterRead 在接口中 org.smartboot.socket.NetMonitorpublic void beforeRead(org.smartboot.socket.transport.AioSession aioSession)
beforeRead 在接口中 org.smartboot.socket.NetMonitorpublic void afterWrite(org.smartboot.socket.transport.AioSession aioSession,
int i)
afterWrite 在接口中 org.smartboot.socket.NetMonitorpublic void beforeWrite(org.smartboot.socket.transport.AioSession aioSession)
beforeWrite 在接口中 org.smartboot.socket.NetMonitorCopyright © 2023. All rights reserved.