public static class IOEventLifeCycleListener.Adapter extends Object implements IOEventLifeCycleListener
IOEventLifeCycleListener implementation.IOEventLifeCycleListener.Adapter| Constructor and Description |
|---|
Adapter() |
| 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)
Terminate
IOEvent processing in this thread, but it's going to be continued later. |
public void onContextSuspend(Context context) throws IOException
IOEvent processing suspended.onContextSuspend in interface IOEventLifeCycleListenercontext - IO ContextIOException - on errorpublic void onContextResume(Context context) throws IOException
IOEvent processing resumed.onContextResume in interface IOEventLifeCycleListenercontext - IO ContextIOException - on errorpublic void onComplete(Context context, Object data) throws IOException
IOEvent processing completed.onComplete in interface IOEventLifeCycleListenercontext - IO Contextdata - data producedIOException - on errorpublic void onTerminate(Context context) throws IOException
IOEvent processing in this thread, but it's going to be continued later.onTerminate in interface IOEventLifeCycleListenercontext - IO ContextIOException - on errorpublic void onError(Context context, Object description) throws IOException
IOEvent processing.onError in interface IOEventLifeCycleListenercontext - IO Contextdescription - description of error. This may be ignored.IOException - on errorpublic void onNotRun(Context context) throws IOException
IOEvent wasn't processed.onNotRun in interface IOEventLifeCycleListenercontext - IO Context on errorIOException - on errorpublic void onContextManualIOEventControl(Context context) throws IOException
Connection.enableIOEvent(org.glassfish.grizzly.IOEvent) or
Connection.disableIOEvent(org.glassfish.grizzly.IOEvent) might be explicitly called.onContextManualIOEventControl in interface IOEventLifeCycleListenercontext - IO Context on errorIOExceptionpublic void onReregister(Context context) throws IOException
IOEvent interest.onReregister in interface IOEventLifeCycleListenercontext - IO ContextIOException - on errorpublic void onLeave(Context context) throws IOException
onLeave in interface IOEventLifeCycleListenercontext - IO ContextIOException - on errorpublic void onRerun(Context context, Context newContext) throws IOException
IOEvent processing.onRerun in interface IOEventLifeCycleListenercontext - original Context to be rerunnewContext - new context, which will replace original ContextIOException - on errorCopyright © 2017–2020 Oracle Corporation. All rights reserved.