- All Known Implementing Classes:
IOEventLifeCycleListener.Adapter
public interface IOEventLifeCycleListener
The
IOEvent
life-cycle listener, which will be notified about changes in IOEvent
processing statuses.- Author:
- Alexey Stashok
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
onComplete
(Context context, Object data) IOEvent
processing completed.void
onContextManualIOEventControl
(Context context) Processing switched to the manual IOEvent control.void
onContextResume
(Context context) IOEvent
processing resumed.void
onContextSuspend
(Context context) IOEvent
processing suspended.void
Error occurred duringIOEvent
processing.void
void
IOEvent
wasn't processed.void
onReregister
(Context context) ReregisterIOEvent
interest.void
Re-runIOEvent
processing.void
onTerminate
(Context context) Deprecated.will never be invoked
-
Method Details
-
onContextSuspend
IOEvent
processing suspended.- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onContextResume
IOEvent
processing resumed.- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onContextManualIOEventControl
Processing switched to the manual IOEvent control.Connection.enableIOEvent(org.glassfish.grizzly.IOEvent)
orConnection.disableIOEvent(org.glassfish.grizzly.IOEvent)
might be explicitly called.- Parameters:
context
- IO Context on error- Throws:
IOException
-
onReregister
ReregisterIOEvent
interest.- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onComplete
IOEvent
processing completed.- Parameters:
context
- IO Contextdata
- data produced- Throws:
IOException
- on error
-
onLeave
- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onTerminate
Deprecated.will never be invokedTerminateIOEvent
processing in this thread, but it's going to be continued later.- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onRerun
Re-runIOEvent
processing.- Parameters:
context
- originalContext
to be rerunnewContext
- new context, which will replace originalContext
- Throws:
IOException
- on error
-
onError
Error occurred duringIOEvent
processing.- Parameters:
context
- IO Contextdescription
- description of error. This may be ignored.- Throws:
IOException
- on error
-
onNotRun
IOEvent
wasn't processed.- Parameters:
context
- IO Context on error- Throws:
IOException
- on error
-