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 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
-
sendData
public String sendData(String data)
Description copied from interface:LedgerManagerSends data message on the ledger.- Specified by:
sendDatain interfaceLedgerManager
-
sendDataAsync
public void sendDataAsync(String data, Runnable callback)
Description copied from interface:LedgerManagerSends data message on the ledger asynchronously with a callback.- Specified by:
sendDataAsyncin interfaceLedgerManager
-
pollQueue
public void pollQueue()
Daemon to unstack processes to end them
-
getWalletBalance
public BigInteger getWalletBalance(LedgerAddress ledgerAddress)
Description copied from interface:LedgerManagerGets the current balance of the provided address- Specified by:
getWalletBalancein interfaceLedgerManager
-
getMyWalletBalance
public BigInteger getMyWalletBalance()
Description copied from interface:LedgerManagerGets the current balance of the wallet- Specified by:
getMyWalletBalancein interfaceLedgerManager
-
-