com.instaclustr.operations.OperationCoordinator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Common classes and utilities integrated with various projects
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);
}
}
}