public class TcpAioClientConnector extends ClientConnectorBase<TcpAioClient> implements org.smartboot.socket.MessageProcessor<Frame>, org.smartboot.socket.NetMonitor
client| 构造器和说明 |
|---|
TcpAioClientConnector(TcpAioClient client) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
close() |
Channel |
connect() |
void |
process(org.smartboot.socket.transport.AioSession s,
Frame frame) |
AsynchronousSocketChannel |
shouldAccept(AsynchronousSocketChannel asynchronousSocketChannel) |
void |
stateEvent(org.smartboot.socket.transport.AioSession s,
org.smartboot.socket.StateMachineEnum state,
Throwable e) |
autoReconnect, heartbeatHandler, heartbeatIntervalpublic TcpAioClientConnector(TcpAioClient client)
public Channel connect() throws Exception
connect 在接口中 ClientConnectorExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic 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.