Interface ProcessingPolicy<U>

    • Method Detail

      • tryProcess

        ProcessingResult tryProcess​(java.lang.String processId,
                                    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.

        processId - persistenceId or other id of the processing operation
        processingUnit - details about current operation to be executed
        needed result of processing the operation