public static <T> void addSuccessCallback(ListenableFuture<T> future, Consumer<T> successCallback) {
    """
	Invokes the callback if the future completes successfully. Note, this uses the direct
	executor, so the callback should not be resource intensive.
    """
        addSuccessCallback(future, successCallback, directExecutor());
    }
public static <T> void addSuccessCallback(ListenableFuture<T> future, Consumer<T> successCallback)
    {
        addSuccessCallback(future, successCallback, directExecutor());
    }
public static < T > void addSuccessCallback ( ListenableFuture < T > future , Consumer < T > successCallback ) { addSuccessCallback ( future , successCallback , directExecutor ( ) ) ; }
Invokes the callback if the future completes successfully. Note, this uses the direct
executor, so the callback should not be resource intensive.
Invokes the callback if the future completes successfully . Note this uses the direct executor so the callback should not be resource intensive .