All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.instaclustr.operations.OperationCoordinator Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.instaclustr.operations;

public abstract class OperationCoordinator {

    public static final int MAX_NUMBER_OF_CONCURRENT_OPERATIONS = Integer.parseInt(System.getProperty("instaclustr.coordinator.operations.executor.size", "100"));

    public abstract ResultGatherer coordinate(Operation operation) throws OperationCoordinatorException;

    public static final class OperationCoordinatorException extends Exception {

        public OperationCoordinatorException(final String message) {
            super(message);
        }

        public OperationCoordinatorException(final String message, final Throwable cause) {
            super(message, cause);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy