public static class MockTransactionBroadcaster.TxFuturePair extends Object
Modifier and Type | Field and Description |
---|---|
com.google.common.util.concurrent.SettableFuture<Transaction> |
future |
Transaction |
tx |
Constructor and Description |
---|
TxFuturePair(Transaction tx,
com.google.common.util.concurrent.SettableFuture<Transaction> future) |
Modifier and Type | Method and Description |
---|---|
void |
succeed()
Tells the broadcasting code that the broadcast was a success, just does future.set(tx)
|
public final Transaction tx
public final com.google.common.util.concurrent.SettableFuture<Transaction> future
public TxFuturePair(Transaction tx, com.google.common.util.concurrent.SettableFuture<Transaction> future)
Copyright © 2015. All rights reserved.