Class 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
    • Field Summary

      • Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

        desc, name
    • Constructor Summary

      Constructors 
      Constructor Description
      TransactionMinedAndUpdatedListener​(org.exoplatform.container.PortalContainer container, org.exoplatform.wallet.service.WalletTransactionService walletTransactionService, org.exoplatform.wallet.service.BlockchainTransactionService blockchainTransactionService)  
    • Constructor Detail

      • TransactionMinedAndUpdatedListener

        public TransactionMinedAndUpdatedListener​(org.exoplatform.container.PortalContainer container,
                                                  org.exoplatform.wallet.service.WalletTransactionService walletTransactionService,
                                                  org.exoplatform.wallet.service.BlockchainTransactionService blockchainTransactionService)
    • Method Detail

      • onEvent

        public void onEvent​(org.exoplatform.services.listener.Event<Object,​org.exoplatform.wallet.model.transaction.TransactionDetail> event)
                     throws Exception
        Specified by:
        onEvent in class org.exoplatform.services.listener.Listener<Object,​org.exoplatform.wallet.model.transaction.TransactionDetail>
        Throws:
        Exception
      • setWaitBeforeStoppingWatchingTimeout

        public void setWaitBeforeStoppingWatchingTimeout​(int waitBeforeStopWatchingTimeout)