*/
package org.opendaylight.controller.md.sal.dom.broker.impl;
+import com.google.common.util.concurrent.SettableFuture;
import org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction;
import org.opendaylight.controller.md.sal.common.api.data.TransactionChain;
import org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener;
-import com.google.common.util.concurrent.SettableFuture;
-
/**
* Simple implementation of {@link TransactionChainListener} for testing.
*
+ * <p>
* This transaction chain listener does not contain any logic, only update
* futures ({@link #getFailFuture()} and {@link #getSuccessFuture()} when
* transaction chain event is retrieved.
- *
*/
+@Deprecated
class BlockingTransactionChainListener implements TransactionChainListener {
private final SettableFuture<Throwable> failFuture = SettableFuture.create();
@Override
public void onTransactionChainFailed(final TransactionChain<?, ?> chain, final AsyncTransaction<?, ?> transaction,
- final Throwable cause) {
+ final Throwable cause) {
failFuture.set(cause);
}