| Modifier and Type | Field and Description |
|---|---|
BitcoindRpcClient |
bitcoin |
| Constructor and Description |
|---|
BitcoinAcceptor(BitcoindRpcClient bitcoin) |
BitcoinAcceptor(BitcoindRpcClient bitcoin,
BitcoinPaymentListener listener) |
BitcoinAcceptor(BitcoindRpcClient bitcoin,
String lastBlock,
int monitorDepth) |
BitcoinAcceptor(BitcoindRpcClient bitcoin,
String lastBlock,
int monitorDepth,
BitcoinPaymentListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(BitcoinPaymentListener listener) |
void |
checkPayments() |
String |
getAccountAddress(String account) |
long |
getCheckInterval()
Get the value of checkInterval
|
String |
getLastBlock() |
BitcoinPaymentListener[] |
getListeners() |
void |
removeListener(BitcoinPaymentListener listener) |
void |
run() |
void |
setCheckInterval(long checkInterval)
Set the value of checkInterval
|
void |
setLastBlock(String lastBlock) |
void |
stopAccepting() |
public final BitcoindRpcClient bitcoin
public BitcoinAcceptor(BitcoindRpcClient bitcoin, String lastBlock, int monitorDepth)
public BitcoinAcceptor(BitcoindRpcClient bitcoin)
public BitcoinAcceptor(BitcoindRpcClient bitcoin, String lastBlock, int monitorDepth, BitcoinPaymentListener listener)
public BitcoinAcceptor(BitcoindRpcClient bitcoin, BitcoinPaymentListener listener)
public String getAccountAddress(String account) throws BitcoinRpcException
BitcoinRpcExceptionpublic String getLastBlock()
public void setLastBlock(String lastBlock) throws BitcoinRpcException
BitcoinRpcExceptionpublic BitcoinPaymentListener[] getListeners()
public void addListener(BitcoinPaymentListener listener)
public void removeListener(BitcoinPaymentListener listener)
public void checkPayments()
throws BitcoinRpcException
BitcoinRpcExceptionpublic void stopAccepting()
public long getCheckInterval()
public void setCheckInterval(long checkInterval)
checkInterval - new value of checkIntervalCopyright © 2017. All rights reserved.