Package com.atlassian.bamboo.utils
Class BambooFutures
java.lang.Object
com.atlassian.bamboo.utils.BambooFutures
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V> void
addLightweightCallback
(com.google.common.util.concurrent.ListenableFuture<V> future, com.google.common.util.concurrent.FutureCallback<? super V> callback) The submitted callback has to be lightweight.
-
Method Details
-
addLightweightCallback
public static <V> void addLightweightCallback(com.google.common.util.concurrent.ListenableFuture<V> future, com.google.common.util.concurrent.FutureCallback<? super V> callback) The submitted callback has to be lightweight. If it is not, consider usingFutures.addCallback(ListenableFuture, FutureCallback, Executor)
instead- See Also:
-
Futures.addCallback(ListenableFuture, FutureCallback, Executor)
-