org.kuali.rice.ksb.messaging.serviceproxies
Class MessageSendingTransactionSynchronization

java.lang.Object
  extended by org.springframework.transaction.support.TransactionSynchronizationAdapter
      extended by org.kuali.rice.ksb.messaging.serviceproxies.MessageSendingTransactionSynchronization
All Implemented Interfaces:
org.springframework.core.Ordered, org.springframework.transaction.support.TransactionSynchronization

public class MessageSendingTransactionSynchronization
extends org.springframework.transaction.support.TransactionSynchronizationAdapter

Sends message when current transaction commits.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static AtomicBoolean CALLED_TRANS_COMMITTED
           
static AtomicBoolean CALLED_TRANS_ROLLEDBACKED
           
 
Fields inherited from interface org.springframework.transaction.support.TransactionSynchronization
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
MessageSendingTransactionSynchronization(PersistedMessageBO message)
           
 
Method Summary
 void afterCompletion(int status)
           
 int getOrder()
           
 
Methods inherited from class org.springframework.transaction.support.TransactionSynchronizationAdapter
afterCommit, beforeCommit, beforeCompletion, flush, resume, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALLED_TRANS_COMMITTED

public static final AtomicBoolean CALLED_TRANS_COMMITTED

CALLED_TRANS_ROLLEDBACKED

public static final AtomicBoolean CALLED_TRANS_ROLLEDBACKED
Constructor Detail

MessageSendingTransactionSynchronization

public MessageSendingTransactionSynchronization(PersistedMessageBO message)
Method Detail

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface org.springframework.transaction.support.TransactionSynchronization
Overrides:
afterCompletion in class org.springframework.transaction.support.TransactionSynchronizationAdapter

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered
Overrides:
getOrder in class org.springframework.transaction.support.TransactionSynchronizationAdapter


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.