Interface TransactionListener

  • All Known Implementing Classes:
    SubscriptionManagerImpl

    public interface TransactionListener
    TransactionListener provides callbacks when a transaction is committed.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void afterCommit​(org.apache.jackrabbit.webdav.transaction.TransactionResource resource, String lockToken, boolean success)
      This method is called after the commit has been executed.
      void beforeCommit​(org.apache.jackrabbit.webdav.transaction.TransactionResource resource, String lockToken)
      This method is called right before a transaction is committed.
    • Method Detail

      • beforeCommit

        void beforeCommit​(org.apache.jackrabbit.webdav.transaction.TransactionResource resource,
                          String lockToken)
        This method is called right before a transaction is committed.
        Parameters:
        resource - the transaction resource which will be committed.
        lockToken - the lock token
      • afterCommit

        void afterCommit​(org.apache.jackrabbit.webdav.transaction.TransactionResource resource,
                         String lockToken,
                         boolean success)
        This method is called after the commit has been executed.
        Parameters:
        resource - the transaction resource which had been committed.
        lockToken - the lock token.
        success - if the commit was successful.