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 Summary
Constructors Constructor Description LedgerManagerImpl(CodecManager codecManager, LedgerPlugin ledgerPlugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
getMyWalletBalance()
Gets the current balance of the walletBigInteger
getWalletBalance(LedgerAddress ledgerAddress)
Gets the current balance of the provided addressvoid
pollQueue()
Daemon to unstack processes to end themString
sendData(String data)
Sends data message on the ledger.void
sendDataAsync(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
-
sendData
public String sendData(String data)
Description copied from interface:LedgerManager
Sends data message on the ledger.- Specified by:
sendData
in interfaceLedgerManager
-
sendDataAsync
public void sendDataAsync(String data, Runnable callback)
Description copied from interface:LedgerManager
Sends data message on the ledger asynchronously with a callback.- Specified by:
sendDataAsync
in interfaceLedgerManager
-
pollQueue
public void pollQueue()
Daemon to unstack processes to end them
-
getWalletBalance
public BigInteger getWalletBalance(LedgerAddress ledgerAddress)
Description copied from interface:LedgerManager
Gets the current balance of the provided address- Specified by:
getWalletBalance
in interfaceLedgerManager
-
getMyWalletBalance
public BigInteger getMyWalletBalance()
Description copied from interface:LedgerManager
Gets the current balance of the wallet- Specified by:
getMyWalletBalance
in interfaceLedgerManager
-
-