Interface IOEventLifeCycleListener

  • All Known Implementing Classes:
    IOEventLifeCycleListener.Adapter

    public interface IOEventLifeCycleListener
    The IOEvent life-cycle listener, which will be notified about changes in IOEvent processing statuses.
    Author:
    Alexey Stashok
    • Method Detail

      • onContextSuspend

        void onContextSuspend​(Context context)
                       throws java.io.IOException
        IOEvent processing suspended.
        Parameters:
        context - IO Context
        Throws:
        java.io.IOException - on error
      • onContextResume

        void onContextResume​(Context context)
                      throws java.io.IOException
        IOEvent processing resumed.
        Parameters:
        context - IO Context
        Throws:
        java.io.IOException - on error
      • onReregister

        void onReregister​(Context context)
                   throws java.io.IOException
        Reregister IOEvent interest.
        Parameters:
        context - IO Context
        Throws:
        java.io.IOException - on error
      • onComplete

        void onComplete​(Context context,
                        java.lang.Object data)
                 throws java.io.IOException
        IOEvent processing completed.
        Parameters:
        context - IO Context
        data - data produced
        Throws:
        java.io.IOException - on error
      • onLeave

        void onLeave​(Context context)
              throws java.io.IOException
        Detaching IOEvent processing out of this Context.
        Parameters:
        context - IO Context
        Throws:
        java.io.IOException - on error
      • onTerminate

        @Deprecated
        void onTerminate​(Context context)
                  throws java.io.IOException
        Deprecated.
        will never be invoked
        Terminate IOEvent processing in this thread, but it's going to be continued later.
        Parameters:
        context - IO Context
        Throws:
        java.io.IOException - on error
      • 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 - on error
      • onError

        void onError​(Context context,
                     java.lang.Object description)
              throws java.io.IOException
        Error occurred during IOEvent processing.
        Parameters:
        context - IO Context
        description - description of error. This may be ignored.
        Throws:
        java.io.IOException - on error
      • onNotRun

        void onNotRun​(Context context)
               throws java.io.IOException
        IOEvent wasn't processed.
        Parameters:
        context - IO Context on error
        Throws:
        java.io.IOException - on error