public interface GridNioFilter
| Modifier and Type | Method and Description |
|---|---|
GridNioFilter |
nextFilter()
Gets next filter in filter chain.
|
void |
nextFilter(GridNioFilter filter)
Sets next filter in filter chain.
|
void |
onExceptionCaught(GridNioSession ses,
GridException ex)
Invoked when exception is caught in filter processing.
|
void |
onMessageReceived(GridNioSession ses,
Object msg)
Invoked when a new messages received.
|
GridNioFuture<?> |
onPauseReads(GridNioSession ses)
Pauses reads for session.
|
GridNioFuture<?> |
onResumeReads(GridNioSession ses)
Resumes reads for session.
|
GridNioFuture<Boolean> |
onSessionClose(GridNioSession ses)
Invoked when a session close request is performed on session.
|
void |
onSessionClosed(GridNioSession ses)
Invoked after session get closed.
|
void |
onSessionIdleTimeout(GridNioSession ses)
Called when session is idle for longer time that is
allowed by NIO server.
|
void |
onSessionOpened(GridNioSession ses)
Invoked when a new session was created.
|
GridNioFuture<?> |
onSessionWrite(GridNioSession ses,
Object msg)
Invoked when a write request is performed on a session.
|
void |
onSessionWriteTimeout(GridNioSession ses)
Called when session has not empty write buffer that has not been fully
flushed during max timeout allowed by NIO server.
|
GridNioFilter |
previousFilter()
Gets previous filter in filter chain.
|
void |
previousFilter(GridNioFilter filter)
Sets previous filter in filter chain.
|
void |
proceedExceptionCaught(GridNioSession ses,
GridException e)
Forwards GridNioException event to the next logical filter in filter chain.
|
void |
proceedMessageReceived(GridNioSession ses,
Object msg)
Forwards received message to the next logical filter in filter chain.
|
GridNioFuture<?> |
proceedPauseReads(GridNioSession ses)
Pauses reads for session.
|
GridNioFuture<?> |
proceedResumeReads(GridNioSession ses)
Resumes reads for session.
|
GridNioFuture<Boolean> |
proceedSessionClose(GridNioSession ses)
Forwards session close request to the next logical filter in filter chain.
|
void |
proceedSessionClosed(GridNioSession ses)
Forwards session closed event to the next logical filter in filter chain.
|
void |
proceedSessionIdleTimeout(GridNioSession ses)
Forwards session idle notification to the next logical filter in filter chain.
|
void |
proceedSessionOpened(GridNioSession ses)
Forwards session opened event to the next logical filter in filter chain.
|
GridNioFuture<?> |
proceedSessionWrite(GridNioSession ses,
Object msg)
Forwards write request to the next logical filter in filter chain.
|
void |
proceedSessionWriteTimeout(GridNioSession ses)
Forwards session write timeout notification to the next logical filter in filter chain.
|
void |
start()
Beginning of a filter lifecycle, invoked on server start.
|
void |
stop()
End of a filter lifecycle, invoked on server stop.
|
void start()
void stop()
GridNioFilter nextFilter()
GridNioFilter previousFilter()
void nextFilter(GridNioFilter filter)
filter - Next filter in filter chain.void previousFilter(GridNioFilter filter)
filter - Previous filter in filter chain.void proceedSessionOpened(GridNioSession ses) throws GridException
ses - Opened session.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.void proceedSessionClosed(GridNioSession ses) throws GridException
ses - Closed session.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.void proceedExceptionCaught(GridNioSession ses, GridException e) throws GridException
ses - Session instance.e - GridNioException instance.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.void proceedMessageReceived(GridNioSession ses, Object msg) throws GridException
ses - Session instance.msg - Received message.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.GridNioFuture<?> proceedSessionWrite(GridNioSession ses, Object msg) throws GridException
ses - Session instance.msg - Message to send.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.GridNioFuture<Boolean> proceedSessionClose(GridNioSession ses) throws GridException
ses - Session instance.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.void onSessionOpened(GridNioSession ses) throws GridException
ses - Opened session.GridException - If GridNioException occurred while handling event.void onSessionClosed(GridNioSession ses) throws GridException
ses - Closed session.GridException - If GridNioException occurred while handling event.void onExceptionCaught(GridNioSession ses, GridException ex) throws GridException
ses - Session that caused GridException.ex - GridNioException instance.GridException - If GridException occurred while handling event.GridNioFuture<?> onSessionWrite(GridNioSession ses, Object msg) throws GridException
ses - Session on which message should be written.msg - Message being written.GridNioException - If GridNioException occurred while handling event.GridExceptionvoid onMessageReceived(GridNioSession ses, Object msg) throws GridException
ses - Session on which message was received.msg - Received message.GridException - If GridException occurred while handling event.GridNioFuture<Boolean> onSessionClose(GridNioSession ses) throws GridException
ses - Session to close.GridException - If GridException occurred while handling event.void onSessionIdleTimeout(GridNioSession ses) throws GridException
ses - Session that is idle.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.void proceedSessionIdleTimeout(GridNioSession ses) throws GridException
ses - Session instance.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.void onSessionWriteTimeout(GridNioSession ses) throws GridException
ses - Session that has timed out writes.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.void proceedSessionWriteTimeout(GridNioSession ses) throws GridException
ses - Session instance.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.GridNioFuture<?> proceedPauseReads(GridNioSession ses) throws GridException
ses - Session.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.GridNioFuture<?> onPauseReads(GridNioSession ses) throws GridException
ses - Session.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.GridNioFuture<?> proceedResumeReads(GridNioSession ses) throws GridException
ses - Session.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.GridNioFuture<?> onResumeReads(GridNioSession ses) throws GridException
ses - Session.GridException - If filter is not in chain or GridNioException occurred in the underlying filter.Copyright © 2014. All rights reserved.