Package org.glassfish.grizzly
Class IOEventLifeCycleListener.Adapter
- java.lang.Object
-
- org.glassfish.grizzly.IOEventLifeCycleListener.Adapter
-
- All Implemented Interfaces:
IOEventLifeCycleListener
- Enclosing interface:
- IOEventLifeCycleListener
public static class IOEventLifeCycleListener.Adapter extends Object implements IOEventLifeCycleListener
EmptyIOEventLifeCycleListenerimplementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.grizzly.IOEventLifeCycleListener
IOEventLifeCycleListener.Adapter
-
-
Constructor Summary
Constructors Constructor Description Adapter()
-
Method Summary
All Methods Instance Methods Concrete 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)TerminateIOEventprocessing in this thread, but it's going to be continued later.
-
-
-
Method Detail
-
onContextSuspend
public void onContextSuspend(Context context) throws IOException
IOEventprocessing suspended.- Specified by:
onContextSuspendin interfaceIOEventLifeCycleListener- Parameters:
context- IO Context- Throws:
IOException- on error
-
onContextResume
public void onContextResume(Context context) throws IOException
IOEventprocessing resumed.- Specified by:
onContextResumein interfaceIOEventLifeCycleListener- Parameters:
context- IO Context- Throws:
IOException- on error
-
onComplete
public void onComplete(Context context, Object data) throws IOException
IOEventprocessing completed.- Specified by:
onCompletein interfaceIOEventLifeCycleListener- Parameters:
context- IO Contextdata- data produced- Throws:
IOException- on error
-
onTerminate
public void onTerminate(Context context) throws IOException
TerminateIOEventprocessing in this thread, but it's going to be continued later.- Specified by:
onTerminatein interfaceIOEventLifeCycleListener- Parameters:
context- IO Context- Throws:
IOException- on error
-
onError
public void onError(Context context, Object description) throws IOException
Error occurred duringIOEventprocessing.- Specified by:
onErrorin interfaceIOEventLifeCycleListener- Parameters:
context- IO Contextdescription- description of error. This may be ignored.- Throws:
IOException- on error
-
onNotRun
public void onNotRun(Context context) throws IOException
IOEventwasn't processed.- Specified by:
onNotRunin interfaceIOEventLifeCycleListener- Parameters:
context- IO Context on error- Throws:
IOException- on error
-
onContextManualIOEventControl
public 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.- Specified by:
onContextManualIOEventControlin interfaceIOEventLifeCycleListener- Parameters:
context- IO Context on error- Throws:
IOException
-
onReregister
public void onReregister(Context context) throws IOException
ReregisterIOEventinterest.- Specified by:
onReregisterin interfaceIOEventLifeCycleListener- Parameters:
context- IO Context- Throws:
IOException- on error
-
onLeave
public void onLeave(Context context) throws IOException
- Specified by:
onLeavein interfaceIOEventLifeCycleListener- Parameters:
context- IO Context- Throws:
IOException- on error
-
onRerun
public void onRerun(Context context, Context newContext) throws IOException
Re-runIOEventprocessing.- Specified by:
onRerunin interfaceIOEventLifeCycleListener- Parameters:
context- originalContextto be rerunnewContext- new context, which will replace originalContext- Throws:
IOException- on error
-
-