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

io.bitexpress.topia.commons.data.retry.RetryableCommandFunction Maven / Gradle / Ivy

There is a newer version: 7.9.1
Show newest version
package io.bitexpress.topia.commons.data.retry;

import java.util.Map;
import java.util.function.Consumer;
import java.util.function.Supplier;

@Deprecated
public interface RetryableCommandFunction {

	public CMD getNotFailureCommand(String parentType, Long parentId, String command, String failureStatus);

	/**
	 * 
	 * @param retryIndex
	 * @param lockCallback
	 * @param paramsSupplier
	 * @param failureStatus
	 * @return
	 */
	public  CMD lockAndPrepareCommand(RetryParent retryParent, Consumer lockCallback,
			Supplier> paramsSupplier, String failureStatus);

	public CMD prepareCommand(String parentType, Long parentId, String command, Map params,
			String failureStatus);

	public CMD updateStatus(String commandId, String status);

	public CMD updateStatus(CMD command, String status);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy