Package org.glassfish.grizzly
Interface IOEventLifeCycleListener
-
- All Known Implementing Classes:
IOEventLifeCycleListener.Adapter
public interface IOEventLifeCycleListenerTheIOEventlife-cycle listener, which will be notified about changes inIOEventprocessing statuses.- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIOEventLifeCycleListener.AdapterEmptyIOEventLifeCycleListenerimplementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidonComplete(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.voidonError(Context context, Object description)Error occurred duringIOEventprocessing.voidonLeave(Context context)voidonNotRun(Context context)IOEventwasn't processed.voidonReregister(Context context)ReregisterIOEventinterest.voidonRerun(Context context, Context newContext)Re-runIOEventprocessing.voidonTerminate(Context context)Deprecated.will never be invoked
-
-
-
Method Detail
-
onContextSuspend
void onContextSuspend(Context context) throws IOException
IOEventprocessing suspended.- Parameters:
context- IO Context- Throws:
IOException- on error
-
onContextResume
void onContextResume(Context context) throws IOException
IOEventprocessing resumed.- Parameters:
context- IO Context- Throws:
IOException- on error
-
onContextManualIOEventControl
void onContextManualIOEventControl(Context context) throws IOException
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
void onReregister(Context context) throws IOException
ReregisterIOEventinterest.- Parameters:
context- IO Context- Throws:
IOException- on error
-
onComplete
void onComplete(Context context, Object data) throws IOException
IOEventprocessing completed.- Parameters:
context- IO Contextdata- data produced- Throws:
IOException- on error
-
onLeave
void onLeave(Context context) throws IOException
- Parameters:
context- IO Context- Throws:
IOException- on error
-
onTerminate
@Deprecated void onTerminate(Context context) throws IOException
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
void onRerun(Context context, Context newContext) throws IOException
Re-runIOEventprocessing.- Parameters:
context- originalContextto be rerunnewContext- new context, which will replace originalContext- Throws:
IOException- on error
-
onError
void onError(Context context, Object description) throws IOException
Error occurred duringIOEventprocessing.- Parameters:
context- IO Contextdescription- description of error. This may be ignored.- Throws:
IOException- on error
-
onNotRun
void onNotRun(Context context) throws IOException
IOEventwasn't processed.- Parameters:
context- IO Context on error- Throws:
IOException- on error
-
-