org.glassfish.grizzly
Interface IOEventProcessingHandler

All Known Implementing Classes:
EmptyIOEventProcessingHandler

public interface IOEventProcessingHandler

The IOEvent processing handler, which will be notified about changes in IOEvent processing statuses.

Author:
Alexey Stashok

Method Summary
 void onComplete(Context context, java.lang.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, java.lang.Object description)
          Error occurred during IOEvent processing.
 void onLeave(Context context)
          Detaching IOEvent processing out of this 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.
 

Method Detail

onContextSuspend

void onContextSuspend(Context context)
                      throws java.io.IOException
IOEvent processing suspended.

Parameters:
context -
Throws:
java.io.IOException

onContextResume

void onContextResume(Context context)
                     throws java.io.IOException
IOEvent processing resumed.

Parameters:
context -
Throws:
java.io.IOException

onContextManualIOEventControl

void onContextManualIOEventControl(Context context)
                                   throws java.io.IOException
Processing switched to the manual IOEvent control. Connection.enableIOEvent(org.glassfish.grizzly.IOEvent) or Connection.disableIOEvent(org.glassfish.grizzly.IOEvent) might be explicitly called.

Parameters:
context -
Throws:
java.io.IOException

onReregister

void onReregister(Context context)
                  throws java.io.IOException
Reregister IOEvent interest.

Parameters:
context -
Throws:
java.io.IOException

onComplete

void onComplete(Context context,
                java.lang.Object data)
                throws java.io.IOException
IOEvent processing completed.

Parameters:
context -
Throws:
java.io.IOException

onLeave

void onLeave(Context context)
             throws java.io.IOException
Detaching IOEvent processing out of this Context.

Parameters:
context -
Throws:
java.io.IOException

onTerminate

void onTerminate(Context context)
                 throws java.io.IOException
Terminate IOEvent processing in this thread, but it's going to be continued later.

Parameters:
context -
Throws:
java.io.IOException

onRerun

void onRerun(Context context,
             Context newContext)
             throws java.io.IOException
Re-run IOEvent processing.

Parameters:
context - original Context to be rerun
newContext - new context, which will replace original Context
Throws:
java.io.IOException

onError

void onError(Context context,
             java.lang.Object description)
             throws java.io.IOException
Error occurred during IOEvent processing.

Parameters:
context -
Throws:
java.io.IOException

onNotRun

void onNotRun(Context context)
              throws java.io.IOException
IOEvent wasn't processed.

Parameters:
context -
Throws:
java.io.IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.