public class GridNioAsyncNotifyFilter extends GridNioFilterAdapter
nextFilter, prevFilter| Constructor and Description |
|---|
GridNioAsyncNotifyFilter(String gridName,
Executor exec,
GridLogger log)
Assigns filter name to a filter.
|
| Modifier and Type | Method and Description |
|---|---|
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<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.
|
void |
stop()
End of a filter lifecycle, invoked on server stop.
|
nextFilter, nextFilter, onPauseReads, onResumeReads, previousFilter, previousFilter, proceedExceptionCaught, proceedMessageReceived, proceedPauseReads, proceedResumeReads, proceedSessionClose, proceedSessionClosed, proceedSessionIdleTimeout, proceedSessionOpened, proceedSessionWrite, proceedSessionWriteTimeout, start, toStringpublic GridNioAsyncNotifyFilter(String gridName, Executor exec, GridLogger log)
gridName - Grid name.exec - Executor.log - Logger.public void stop()
stop in interface GridNioFilterstop in class GridNioFilterAdapterpublic void onSessionOpened(GridNioSession ses) throws GridException
ses - Opened session.GridException - If GridNioException occurred while handling event.public void onSessionClosed(GridNioSession ses) throws GridException
ses - Closed session.GridException - If GridNioException occurred while handling event.public void onMessageReceived(GridNioSession ses, Object msg) throws GridException
ses - Session on which message was received.msg - Received message.GridException - If GridException occurred while handling event.public void onExceptionCaught(GridNioSession ses, GridException ex) throws GridException
ses - Session that caused GridException.ex - GridNioException instance.GridException - If GridException occurred while handling event.public 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.GridExceptionpublic GridNioFuture<Boolean> onSessionClose(GridNioSession ses) throws GridException
ses - Session to close.GridException - If GridException occurred while handling event.public 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.public 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.Copyright © 2014. All rights reserved.