public interface IOEventLifeCycleListener
IOEvent
life-cycle listener, which will be notified about changes
in IOEvent
processing statuses.Modifier and Type | Interface and Description |
---|---|
static class |
IOEventLifeCycleListener.Adapter
Empty
IOEventLifeCycleListener implementation. |
Modifier and Type | Method and 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 during
IOEvent processing. |
void |
onLeave(Context context)
|
void |
onNotRun(Context context)
IOEvent wasn't processed. |
void |
onReregister(Context context)
Reregister
IOEvent interest. |
void |
onRerun(Context context,
Context newContext)
Re-run
IOEvent processing. |
void |
onTerminate(Context context)
Deprecated.
will never be invoked
|
void onContextSuspend(Context context) throws IOException
IOEvent
processing suspended.context
- IOException
void onContextResume(Context context) throws IOException
IOEvent
processing resumed.context
- IOException
void onContextManualIOEventControl(Context context) throws IOException
Connection.enableIOEvent(org.glassfish.grizzly.IOEvent)
or
Connection.disableIOEvent(org.glassfish.grizzly.IOEvent)
might be
explicitly called.context
- IOException
void onReregister(Context context) throws IOException
IOEvent
interest.context
- IOException
void onComplete(Context context, Object data) throws IOException
IOEvent
processing completed.context
- IOException
void onLeave(Context context) throws IOException
context
- IOException
void onTerminate(Context context) throws IOException
IOEvent
processing in this thread, but it's going to
be continued later.context
- IOException
void onRerun(Context context, Context newContext) throws IOException
IOEvent
processing.context
- original Context
to be rerunnewContext
- new context, which will replace original Context
IOException
void onError(Context context, Object description) throws IOException
IOEvent
processing.context
- IOException
void onNotRun(Context context) throws IOException
IOEvent
wasn't processed.context
- IOException
Copyright © 2015 Oracle Corporation. All rights reserved.