Example usage for com.google.common.util.concurrent FutureCallback interface-usage

List of usage examples for com.google.common.util.concurrent FutureCallback interface-usage

Introduction

In this page you can find the example usage for com.google.common.util.concurrent FutureCallback interface-usage.

Usage

From source file eu.virtuwind.reference.impl.LoggingFuturesCallBack.java

/**
 * Created by geopet on 26/5/2016.
 */
public class LoggingFuturesCallBack<V> implements FutureCallback<V> {

    private Logger LOG;

From source file org.opendaylight.netvirt.elan.l2gw.utils.SettableFutureCallback.java

public class SettableFutureCallback<T> implements FutureCallback<T> {

    private final SettableFuture<T> settableFuture;

    public SettableFutureCallback(SettableFuture<T> settableFuture) {
        this.settableFuture = settableFuture;

From source file org.opendaylight.infrautils.utils.concurrent.FailureLoggingFutureCallbackBase.java

/**
 * Guava Future Callback which logs failures as errors abstract base class.
 *
 * @author Michael Vorburger.ch
 */
// package-local not public (for the time being)

From source file org.opendaylight.vtn.manager.internal.util.concurrent.FutureErrorCallback.java

/**
 * An implementation of {@link FutureCallback} that records an error log
 * when the future has failed.
 *
 * @param <T>  The type of objects to be returned by the future.
 */

From source file org.opendaylight.controller.md.sal.dom.broker.impl.DOMDataCommitErrorInvoker.java

/**
 *
 * Utility implemetation of {@link FutureCallback} which is responsible
 * for invoking {@link DOMDataCommitErrorListener} on TransactionCommit failed.
 *
 * When {@link #onFailure(Throwable)} is invoked, supplied {@link DOMDataCommitErrorListener}

From source file io.v.todos.persistence.syncbase.TrappingCallback.java

/**
 * A {@link FutureCallback} that reports persistence errors by toasting a short message to the
 * user and logging the exception trace and the call stack from where the future was invoked.
 *
 * TODO(rosswang): Factor into V23.
 */

From source file org.erlide.runtime.rpc.IRpcCallback.java

public interface IRpcCallback extends FutureCallback<OtpErlangObject> {

}

From source file org.opendaylight.netconf.sal.connect.netconf.util.NetconfRpcFutureCallback.java

/**
 * Simple Netconf rpc logging callback
 */
public class NetconfRpcFutureCallback implements FutureCallback<DOMRpcResult> {
    private static final Logger LOG = LoggerFactory.getLogger(NetconfRpcFutureCallback.class);

From source file org.opendaylight.controller.sal.connect.netconf.util.NetconfRpcFutureCallback.java

/**
 * Simple Netconf rpc logging callback
 */
public class NetconfRpcFutureCallback implements FutureCallback<DOMRpcResult> {
    private static final Logger LOG = LoggerFactory.getLogger(NetconfRpcFutureCallback.class);

From source file org.guldenj.jni.NativeFutureCallback.java

/**
 * An event listener that relays events to a native C++ object. A pointer to that object is stored in
 * this class using JNI on the native side, thus several instances of this can point to different actual
 * native implementations.
 */
public class NativeFutureCallback implements FutureCallback {