Interface ImaTransaction


public interface ImaTransaction
The ImaSubscription object is created using the newSubscription() method of ImaConnection. The configuration of the subscription is read only, and the only actions which can be taken on the subscription are subscribe() and close(). A subscription object is tied to a connection.
  • Field Details

  • Method Details

    • getConnection

      ImaConnection getConnection()
      Get the connection associated with a transaction.
      Returns:
      The connection object
    • getTransactionListener

      ImaTransactionListener getTransactionListener()
      Get the transaction listerner associated with a transaction.
      Returns:
      The transaction listener object
    • commit

      void commit()
      Commit the transaction. All messages sent from this transaction are made available to receivers.
    • rollback

      void rollback()
      Rollback the transaction. All changed made from this transaction are undone.
    • inUse

      boolean inUse()
    • isValid

      boolean isValid()
      Check if the transaction is fully created.
      Returns:
      ture if the transaction is completely created.