Class TransferCommitTransactionListener

java.lang.Object
org.alfresco.repo.transaction.TransactionListenerAdapter
org.alfresco.repo.transfer.TransferCommitTransactionListener
All Implemented Interfaces:
TransactionListener, org.alfresco.util.transaction.TransactionListener

public class TransferCommitTransactionListener extends TransactionListenerAdapter
  • Constructor Details

    • TransferCommitTransactionListener

      public TransferCommitTransactionListener(String transferId, TransferReceiver receiver)
  • Method Details

    • afterCommit

      public void afterCommit()
      Description copied from class: TransactionListenerAdapter
      Invoked after transaction commit.

      Any exceptions generated here will only be logged and will have no effect on the state of the transaction.

      Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.

      Specified by:
      afterCommit in interface TransactionListener
      Specified by:
      afterCommit in interface org.alfresco.util.transaction.TransactionListener
      Overrides:
      afterCommit in class TransactionListenerAdapter
    • afterRollback

      public void afterRollback()
      Description copied from class: TransactionListenerAdapter
      Invoked after transaction rollback.

      Any exceptions generated here will only be logged and will have no effect on the state of the transaction.

      Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.

      Specified by:
      afterRollback in interface TransactionListener
      Specified by:
      afterRollback in interface org.alfresco.util.transaction.TransactionListener
      Overrides:
      afterRollback in class TransactionListenerAdapter