java.lang.Object
org.glassfish.grizzly.IOEventLifeCycleListener.Adapter
- All Implemented Interfaces:
IOEventLifeCycleListener
- Enclosing interface:
- IOEventLifeCycleListener
public static class IOEventLifeCycleListener.Adapter
extends Object
implements IOEventLifeCycleListener
Empty
IOEventLifeCycleListener
implementation.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.grizzly.IOEventLifeCycleListener
IOEventLifeCycleListener.Adapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Error occurred duringIOEvent
processing.void
void
IOEvent
wasn't processed.void
onReregister
(Context context) ReregisterIOEvent
interest.void
Re-runIOEvent
processing.void
onTerminate
(Context context) TerminateIOEvent
processing in this thread, but it's going to be continued later.
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
onContextSuspend
IOEvent
processing suspended.- Specified by:
onContextSuspend
in interfaceIOEventLifeCycleListener
- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onContextResume
IOEvent
processing resumed.- Specified by:
onContextResume
in interfaceIOEventLifeCycleListener
- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onComplete
IOEvent
processing completed.- Specified by:
onComplete
in interfaceIOEventLifeCycleListener
- Parameters:
context
- IO Contextdata
- data produced- Throws:
IOException
- on error
-
onTerminate
TerminateIOEvent
processing in this thread, but it's going to be continued later.- Specified by:
onTerminate
in interfaceIOEventLifeCycleListener
- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onError
Error occurred duringIOEvent
processing.- Specified by:
onError
in interfaceIOEventLifeCycleListener
- Parameters:
context
- IO Contextdescription
- description of error. This may be ignored.- Throws:
IOException
- on error
-
onNotRun
IOEvent
wasn't processed.- Specified by:
onNotRun
in interfaceIOEventLifeCycleListener
- Parameters:
context
- IO Context on error- Throws:
IOException
- on error
-
onContextManualIOEventControl
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:
onContextManualIOEventControl
in interfaceIOEventLifeCycleListener
- Parameters:
context
- IO Context on error- Throws:
IOException
-
onReregister
ReregisterIOEvent
interest.- Specified by:
onReregister
in interfaceIOEventLifeCycleListener
- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onLeave
- Specified by:
onLeave
in interfaceIOEventLifeCycleListener
- Parameters:
context
- IO Context- Throws:
IOException
- on error
-
onRerun
Re-runIOEvent
processing.- Specified by:
onRerun
in interfaceIOEventLifeCycleListener
- Parameters:
context
- originalContext
to be rerunnewContext
- new context, which will replace originalContext
- Throws:
IOException
- on error
-