- 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 TypeMethodDescriptionvoidonComplete(Context context, Object data) IOEventprocessing completed.voidonContextManualIOEventControl(Context context) Processing switched to the manual IOEvent control.voidonContextResume(Context context) IOEventprocessing resumed.voidonContextSuspend(Context context) IOEventprocessing suspended.voidError occurred duringIOEventprocessing.voidvoidIOEventwasn't processed.voidonReregister(Context context) ReregisterIOEventinterest.voidRe-runIOEventprocessing.voidonTerminate(Context context) Deprecated.will never be invoked
-
Method Details
-
onContextSuspend
IOEventprocessing suspended.- Parameters:
context- IO Context- Throws:
IOException- on error
-
onContextResume
IOEventprocessing 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
ReregisterIOEventinterest.- Parameters:
context- IO Context- Throws:
IOException- on error
-
onComplete
IOEventprocessing 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 invokedTerminateIOEventprocessing in this thread, but it's going to be continued later.- Parameters:
context- IO Context- Throws:
IOException- on error
-
onRerun
Re-runIOEventprocessing.- Parameters:
context- originalContextto be rerunnewContext- new context, which will replace originalContext- Throws:
IOException- on error
-
onError
Error occurred duringIOEventprocessing.- Parameters:
context- IO Contextdescription- description of error. This may be ignored.- Throws:
IOException- on error
-
onNotRun
IOEventwasn't processed.- Parameters:
context- IO Context on error- Throws:
IOException- on error
-