Class SimpleWaitIOCallback

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void done()
      Method for sync notifications.
      void onError​(int errorCode1, java.lang.String errorMessage1)
      Method for error notifications.
      void storeLineUp()  
      java.lang.String toString()  
      void waitCompletion()  
      boolean waitCompletion​(long timeout)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleWaitIOCallback

        public SimpleWaitIOCallback()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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
      • onError

        public void onError​(int errorCode1,
                            java.lang.String errorMessage1)
        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
      • waitCompletion

        public void waitCompletion()
                            throws java.lang.InterruptedException,
                                   org.apache.activemq.artemis.api.core.ActiveMQException
        Specified by:
        waitCompletion in class SyncIOCompletion
        Throws:
        java.lang.InterruptedException
        org.apache.activemq.artemis.api.core.ActiveMQException
      • waitCompletion

        public boolean waitCompletion​(long timeout)
                               throws java.lang.InterruptedException,
                                      org.apache.activemq.artemis.api.core.ActiveMQException
        Throws:
        java.lang.InterruptedException
        org.apache.activemq.artemis.api.core.ActiveMQException
      • storeLineUp

        public void storeLineUp()