public class MockTransactionBroadcaster extends Object implements TransactionBroadcaster
broadcasts
member. Reading from that
LinkedBlockingQueue
will block the thread until a transaction is available.Modifier and Type | Class and Description |
---|---|
static class |
MockTransactionBroadcaster.TxFuturePair |
Constructor and Description |
---|
MockTransactionBroadcaster(Wallet wallet) |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.SettableFuture<Transaction> |
broadcastTransaction(Transaction tx)
Broadcast the given transaction on the network
|
int |
size() |
Transaction |
waitForTransaction() |
MockTransactionBroadcaster.TxFuturePair |
waitForTxFuture() |
public MockTransactionBroadcaster(Wallet wallet)
public com.google.common.util.concurrent.SettableFuture<Transaction> broadcastTransaction(Transaction tx)
TransactionBroadcaster
broadcastTransaction
in interface TransactionBroadcaster
public Transaction waitForTransaction()
public MockTransactionBroadcaster.TxFuturePair waitForTxFuture()
public int size()
Copyright © 2014. All rights reserved.