Class TransactionCallback

    • Constructor Detail

      • TransactionCallback

        public TransactionCallback()
    • Method Detail

      • countUp

        public void countUp()
      • done

        public void done()
        Description copied from interface: IOCallback
        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
        Specified by:
        done in interface IOCallback
      • onError

        public void onError​(int errorCode,
                            String errorMessage)
        Description copied from interface: IOCallback
        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
        Specified by:
        onError in interface IOCallback
      • getDelegateCompletion

        public IOCallback getDelegateCompletion()
        Returns:
        the delegateCompletion
      • setDelegateCompletion

        public void setDelegateCompletion​(IOCallback delegateCompletion)
        Parameters:
        delegateCompletion - the delegateCompletion to set
      • getErrorMessage

        public String getErrorMessage()
        Returns:
        the errorMessage
      • getErrorCode

        public int getErrorCode()
        Returns:
        the errorCode