org.blackdread.cameraframework.api.CallableCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camera-framework Show documentation
Show all versions of camera-framework Show documentation
Canon sdk implementation of bindings
package org.blackdread.cameraframework.api;
/**
* Similar to {@link java.util.concurrent.Callable} but fits command exception contract
* Created on 2018/12/09.
*
* @param the result type of method {@code call}
* @author Yoann CAPLAIN
* @since 1.0.0
*/
@FunctionalInterface
public interface CallableCommand {
/**
* Computes a result, or throws an exception if unable to do so.
*
* @return computed result
* @throws InterruptedException if interrupted
*/
R call() throws InterruptedException;
}