Interface IOCallback

All Known Subinterfaces:
IOCompletion
All Known Implementing Classes:
DelegateCallback, DummyCallback, JournalTransaction, SimpleWaitIOCallback, SyncIOCompletion

public interface IOCallback
The interface used for AIO Callbacks.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method for sync notifications.
    static void
    done(Collection<? extends IOCallback> delegates)
     
    void
    onError(int errorCode, String errorMessage)
    Method for error notifications.
    static void
    onError(Collection<? extends IOCallback> delegates, int errorCode, String errorMessage)
     
  • Method Details

    • done

      void done()
      Method for sync notifications. When this callback method is called, there is a guarantee the data is written on the disk.

      Note:Leave this method as soon as possible, or you would be blocking the whole notification thread

    • onError

      void onError(int errorCode, String errorMessage)
      Method for error notifications. Observation: The whole file will be probably failing if this happens. Like, if you delete the file, you will start to get errors for these operations
    • done

      static void done(Collection<? extends IOCallback> delegates)
    • onError

      static void onError(Collection<? extends IOCallback> delegates, int errorCode, String errorMessage)