Package com.ibm.ima.plugin
Interface ImaTransaction
-
public interface ImaTransactionThe 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 Summary
Fields Modifier and Type Field Description static StringCOPYRIGHT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcommit()Commit the transaction.ImaConnectiongetConnection()Get the connection associated with a transaction.ImaTransactionListenergetTransactionListener()Get the transaction listerner associated with a transaction.booleaninUse()booleanisValid()Check if the transaction is fully created.voidrollback()Rollback the transaction.
-
-
-
Field Detail
-
COPYRIGHT
static final String COPYRIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-