List of usage examples for com.google.common.util.concurrent FutureCallback interface-usage
From source file org.robotninjas.concurrent.ConsumerDecorator.java
class ConsumerDecorator<V> implements FutureCallback<V> { private final Optional<Consumer<V>> success; private final Optional<Consumer<Throwable>> failure; private ConsumerDecorator(Consumer<V> success, Consumer<Throwable> failure) {
From source file zipkin.storage.guava.InternalForwardingCallback.java
final class InternalForwardingCallback<T> implements FutureCallback<T> { final Callback<T> delegate; InternalForwardingCallback(Callback<T> delegate) { this.delegate = checkNotNull(delegate, "callback"); }
From source file me.j360.trace.storage.core.guava.InternalForwardingCallback.java
final class InternalForwardingCallback<T> implements FutureCallback<T> { final Callback<T> delegate; InternalForwardingCallback(Callback<T> delegate) { this.delegate = checkNotNull(delegate, "callback"); }
From source file org.fcrepo.kernel.utils.LogoutCallback.java
/**
* A {@link FutureCallback} intended for use with streaming outputs.
* It simply logs out the {@link Session} involved.
*
* @author ajs6f
* @date Oct 30, 2013
From source file org.fcrepo.kernel.impl.utils.LogoutCallback.java
/**
* A {@link FutureCallback} intended for use with streaming outputs.
* It simply logs out the {@link Session} involved.
*
* @author ajs6f
* @since Oct 30, 2013
From source file org.opendaylight.infrautils.utils.concurrent.ListenableToCompletableFutureWrapper.java
final class ListenableToCompletableFutureWrapper<V> extends CompletableFuture<V> implements FutureCallback<V> { // This implementation is inspired by a spotify/futures-extra's class of the same name // remixed with https://blog.krecan.net/2014/06/11/converting-listenablefutures-to-completablefutures-and-back/ public static <T> CompletionStage<T> create(ListenableFuture<T> guavaListenableFuture) {
From source file com.eclipsesource.connect.api.impl.DelegatingFutureCallback.java
public class DelegatingFutureCallback implements FutureCallback<Object> { private final ExecutorFailureCallback failureCallback; private final ExecutorSuccessCallback successCallback; public DelegatingFutureCallback(ExecutorSuccessCallback successCallback,
From source file org.opendaylight.mdsal.dom.broker.PingPongTransaction.java
/** * Transaction context. Tracks the relationship with the backend transaction. * We never leak this class to the user and have it implement the {@link FutureCallback} * interface so we have a simple way of propagating the result. */ final class PingPongTransaction implements FutureCallback<Void> {
From source file org.eclipse.emf.compare.ide.ui.internal.logical.resolver.MonitorCallback.java
/**
* Callback that updates a progress monitor when called. Also owns a diagnostic that gets update if this is
* called upon failure.
*
* @author <a href="mailto:laurent.delaigue@obeo.fr">Laurent Delaigue</a>
*/
From source file org.lealone.cluster.streaming.StreamEventHandler.java
public interface StreamEventHandler extends FutureCallback<StreamState> { /** * Callback for various streaming events. * * @see StreamEvent.Type * @param event Stream event.