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

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

    Modifier and Type
    Method
    Description
    void
    onEvent(org.exoplatform.services.listener.Event<Object,org.exoplatform.wallet.model.transaction.TransactionDetail> event)
     
    void
    setWaitBeforeStoppingWatchingTimeout(int waitBeforeStopWatchingTimeout)
     

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

    • onEvent

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

      public void setWaitBeforeStoppingWatchingTimeout(int waitBeforeStopWatchingTimeout)