Package org.glassfish.grizzly
Interface IOEventLifeCycleListener
-
- All Known Implementing Classes:
IOEventLifeCycleListener.Adapter
public interface IOEventLifeCycleListener
TheIOEvent
life-cycle listener, which will be notified about changes inIOEvent
processing statuses.- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IOEventLifeCycleListener.Adapter
EmptyIOEventLifeCycleListener
implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
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
onError(Context context, Object description)
Error occurred duringIOEvent
processing.void
onLeave(Context context)
void
onNotRun(Context context)
IOEvent
wasn't processed.void
onReregister(Context context)
ReregisterIOEvent
interest.void
onRerun(Context context, Context newContext)
Re-runIOEvent
processing.void
onTerminate(Context context)
Deprecated.will never be invoked
-
-
-
Method Detail
-
onContextSuspend
void onContextSuspend(Context context) throws IOException
IOEvent
processing suspended.- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onContextResume
void onContextResume(Context context) throws IOException
IOEvent
processing 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
ReregisterIOEvent
interest.- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onComplete
void onComplete(Context context, Object data) throws IOException
IOEvent
processing 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 invokedTerminateIOEvent
processing 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-runIOEvent
processing.- Parameters:
context
- originalContext
to be rerunnewContext
- new context, which will replace originalContext
- Throws:
IOException
- on error
-
onError
void onError(Context context, Object description) throws IOException
Error occurred duringIOEvent
processing.- Parameters:
context
- IO Contextdescription
- description of error. This may be ignored.- Throws:
IOException
- on error
-
onNotRun
void onNotRun(Context context) throws IOException
IOEvent
wasn't processed.- Parameters:
context
- IO Context on error- Throws:
IOException
- on error
-
-