Class FederatedNoOutputHandler<PAYLOAD extends Operation>

  • Type Parameters:
    PAYLOAD - The operation to be federated and executed by delegate graphs.
    All Implemented Interfaces:
    OperationHandler<PAYLOAD>

    public class FederatedNoOutputHandler<PAYLOAD extends Operation>
    extends Object
    implements OperationHandler<PAYLOAD>
    Operation handler for the federation of an PAYLOAD operation with an expected return type of Void/Null.

    The Operation with no output is wrapped in a defaulted FederatedOperation and re-executed.

    • Constructor Detail

      • FederatedNoOutputHandler

        public FederatedNoOutputHandler()
    • Method Detail

      • doOperation

        public Void doOperation​(PAYLOAD operation,
                                Context context,
                                Store store)
                         throws OperationException
        The Operation with no output is wrapped in a defaulted FederatedOperation and re-executed.
        Specified by:
        doOperation in interface OperationHandler<PAYLOAD extends Operation>
        Parameters:
        operation - no output operation to be executed
        context - the operation chain context, containing the user who executed the operation
        store - the FederatedStore the operation should be run on.
        Returns:
        null, no output.
        Throws:
        OperationException - thrown if the operation fails