@Internal public interface IOEventHandler
Modifier and Type | Method and Description |
---|---|
void |
connected(IOSession session)
Triggered after the given session has been just created.
|
void |
disconnected(IOSession session)
Triggered when the given session has been terminated.
|
void |
exception(IOSession session,
Exception cause)
Triggered when the given session throws a exception.
|
void |
inputReady(IOSession session,
ByteBuffer src)
Triggered when the given session has input pending.
|
void |
outputReady(IOSession session)
Triggered when the given session is ready for output.
|
void |
timeout(IOSession session,
Timeout timeout)
Triggered when the given session has timed out.
|
void connected(IOSession session) throws IOException
session
- the I/O session.IOException
void inputReady(IOSession session, ByteBuffer src) throws IOException
session
- the I/O session.IOException
void outputReady(IOSession session) throws IOException
session
- the I/O session.IOException
void timeout(IOSession session, Timeout timeout) throws IOException
session
- the I/O session.timeout
- the timeout.IOException
void exception(IOSession session, Exception cause)
session
- the I/O session.void disconnected(IOSession session)
session
- the I/O session.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.