org.jboss.messaging.core.transaction
Interface Transaction

All Known Implementing Classes:
TransactionImpl

public interface Transaction

A JBoss Messaging internal transaction

Author:
Tim Fox

Nested Class Summary
static class Transaction.State
           
 
Method Summary
 void addAcknowledgement(MessageReference acknowledgement)
           
 void addMessage(ServerMessage message)
           
 void commit()
           
 int getAcknowledgementsCount()
           
 long getID()
           
 Transaction.State getState()
           
 javax.transaction.xa.Xid getXid()
           
 boolean isContainsPersistent()
           
 boolean isEmpty()
           
 void markAsRollbackOnly(MessagingException messagingException)
           
 void prepare()
           
 void resume()
           
 void rollback(HierarchicalRepository<QueueSettings> queueSettingsRepository)
           
 void suspend()
           
 

Method Detail

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.