Class DummyOperationContext

    • Constructor Detail

      • DummyOperationContext

        public DummyOperationContext()
    • Method Detail

      • executeOnCompletion

        public void executeOnCompletion​(IOCallback runnable)
        Description copied from interface: OperationContext
        Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.
        Specified by:
        executeOnCompletion in interface OperationContext
        Parameters:
        runnable - the tas to be executed.
      • executeOnCompletion

        public void executeOnCompletion​(IOCallback runnable,
                                        boolean storeOnly)
        Description copied from interface: OperationContext
        Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.
        Specified by:
        executeOnCompletion in interface OperationContext
        Parameters:
        runnable - the tas to be executed.
        storeOnly - There are tasks that won't need to wait on replication or paging and will need to be completed as soon as the response from the journal is received. An example would be the DuplicateCache
      • done

        public void done()
        Specified by:
        done in interface IOCallback
      • onError

        public void onError​(int errorCode,
                            String errorMessage)
        Specified by:
        onError in interface IOCallback
      • waitCompletion

        public boolean waitCompletion​(long timeout)
        Specified by:
        waitCompletion in interface OperationContext
        Parameters:
        timeout - in milliseconds
        Returns: