Interface ProcessingPolicy<U>

    • Method Detail

      • tryProcess

        ProcessingResult tryProcess​(java.lang.String persistenceId,
                                    U processingUnit)
        Emulates behavior of the storage. The function is invoked when any of the plugin's operations is executed. If you need this operation to succeed return ProcessingSuccess, otherwise you should return some of the ProcessingFailure's.

        Parameters:
        processingUnit - details about current operation to be executed
        Returns:
        needed result of processing the operation