org.jboss.messaging.core.transaction
Interface Transaction
- All Known Implementing Classes:
- TransactionImpl
public interface Transaction
A JBoss Messaging internal transaction
- Author:
- Tim Fox
prepare
void prepare()
throws java.lang.Exception
- Throws:
java.lang.Exception
commit
void commit()
throws java.lang.Exception
- Throws:
java.lang.Exception
rollback
void rollback(HierarchicalRepository<QueueSettings> queueSettingsRepository)
throws java.lang.Exception
- Throws:
java.lang.Exception
addMessage
void addMessage(ServerMessage message)
throws java.lang.Exception
- Throws:
java.lang.Exception
addAcknowledgement
void addAcknowledgement(MessageReference acknowledgement)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAcknowledgementsCount
int getAcknowledgementsCount()
getID
long getID()
getXid
javax.transaction.xa.Xid getXid()
isEmpty
boolean isEmpty()
suspend
void suspend()
resume
void resume()
getState
Transaction.State getState()
isContainsPersistent
boolean isContainsPersistent()
markAsRollbackOnly
void markAsRollbackOnly(MessagingException messagingException)
Copyright © 2006 JBoss Inc. All Rights Reserved.