Class TransactionMinedAndUpdatedListener
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.services.listener.Listener<Object,org.exoplatform.wallet.model.transaction.TransactionDetail>
-
- org.exoplatform.wallet.blockchain.listener.TransactionMinedAndUpdatedListener
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class TransactionMinedAndUpdatedListener extends org.exoplatform.services.listener.Listener<Object,org.exoplatform.wallet.model.transaction.TransactionDetail>
This listener will be triggered when a transaction is mined and updated on database. The listener will optimize Blockchain Subscription time to stop watching to Blockchain there are no more contract transactions to send nor sent and remains pending
-
-
Constructor Summary
Constructors Constructor Description TransactionMinedAndUpdatedListener(org.exoplatform.container.PortalContainer container, org.exoplatform.wallet.service.WalletTransactionService walletTransactionService, org.exoplatform.wallet.service.BlockchainTransactionService blockchainTransactionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonEvent(org.exoplatform.services.listener.Event<Object,org.exoplatform.wallet.model.transaction.TransactionDetail> event)voidsetWaitBeforeStoppingWatchingTimeout(int waitBeforeStopWatchingTimeout)
-
-
-
Constructor Detail
-
TransactionMinedAndUpdatedListener
public TransactionMinedAndUpdatedListener(org.exoplatform.container.PortalContainer container, org.exoplatform.wallet.service.WalletTransactionService walletTransactionService, org.exoplatform.wallet.service.BlockchainTransactionService blockchainTransactionService)
-
-