Package io.vertigo.audit.impl.ledger
Class LedgerManagerImpl
- java.lang.Object
- 
- io.vertigo.audit.impl.ledger.LedgerManagerImpl
 
- 
- All Implemented Interfaces:
- LedgerManager,- io.vertigo.core.node.component.Component,- io.vertigo.core.node.component.CoreComponent,- io.vertigo.core.node.component.Manager
 
 public final class LedgerManagerImpl extends Object implements LedgerManager 
- 
- 
Constructor SummaryConstructors Constructor Description LedgerManagerImpl(CodecManager codecManager, LedgerPlugin ledgerPlugin)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegergetMyWalletBalance()Gets the current balance of the walletBigIntegergetWalletBalance(LedgerAddress ledgerAddress)Gets the current balance of the provided addressvoidpollQueue()Daemon to unstack processes to end themStringsendData(String data)Sends data message on the ledger.voidsendDataAsync(String data, Runnable callback)Sends data message on the ledger asynchronously with a callback.
 
- 
- 
- 
Constructor Detail- 
LedgerManagerImpl@Inject public LedgerManagerImpl(CodecManager codecManager, LedgerPlugin ledgerPlugin) 
 
- 
 - 
Method Detail- 
sendDatapublic String sendData(String data) Description copied from interface:LedgerManagerSends data message on the ledger.- Specified by:
- sendDatain interface- LedgerManager
 
 - 
sendDataAsyncpublic void sendDataAsync(String data, Runnable callback) Description copied from interface:LedgerManagerSends data message on the ledger asynchronously with a callback.- Specified by:
- sendDataAsyncin interface- LedgerManager
 
 - 
pollQueuepublic void pollQueue() Daemon to unstack processes to end them
 - 
getWalletBalancepublic BigInteger getWalletBalance(LedgerAddress ledgerAddress) Description copied from interface:LedgerManagerGets the current balance of the provided address- Specified by:
- getWalletBalancein interface- LedgerManager
 
 - 
getMyWalletBalancepublic BigInteger getMyWalletBalance() Description copied from interface:LedgerManagerGets the current balance of the wallet- Specified by:
- getMyWalletBalancein interface- LedgerManager
 
 
- 
 
-