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,org.exoplatform.services.listener.ListenerBase<Object,org.exoplatform.wallet.model.transaction.TransactionDetail>
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
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionTransactionMinedAndUpdatedListener(org.exoplatform.container.PortalContainer container, org.exoplatform.wallet.service.WalletTransactionService walletTransactionService, org.exoplatform.wallet.service.BlockchainTransactionService blockchainTransactionService) -
Method Summary
Modifier and TypeMethodDescriptionvoidonEvent(org.exoplatform.services.listener.Event<Object, org.exoplatform.wallet.model.transaction.TransactionDetail> event) voidsetWaitBeforeStoppingWatchingTimeout(int waitBeforeStopWatchingTimeout) Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.listener.ListenerBase
getName
-
Constructor Details
-
TransactionMinedAndUpdatedListener
public TransactionMinedAndUpdatedListener(org.exoplatform.container.PortalContainer container, org.exoplatform.wallet.service.WalletTransactionService walletTransactionService, org.exoplatform.wallet.service.BlockchainTransactionService blockchainTransactionService)
-
-
Method Details