org.jboss.cdi.tck.tests.event.observer.transactional
Class AccountTransactionObserver

java.lang.Object
  extended by org.jboss.cdi.tck.tests.event.observer.transactional.AccountTransactionObserver

public class AccountTransactionObserver
extends Object

Author:
Martin Kouba

Field Summary
static long afterCompletionObservedTime
           
static long afterFailureObservedTime
           
static long afterSuccessObservedTime
           
static long beforeCompletionObservedTime
           
static long noTxObservedTime
           
 
Constructor Summary
AccountTransactionObserver()
           
 
Method Summary
static boolean allEventsFiredBeforeCheckpoint(long checkpoint)
           
static void reset()
           
 void withdrawAfterCompletion(Withdrawal withdrawal)
           
 void withdrawAfterFailure(Withdrawal withdrawal)
           
 void withdrawAfterSuccess(Withdrawal withdrawal)
           
 void withdrawBeforeCompletion(Withdrawal withdrawal)
           
 void withdrawNoTx(Withdrawal withdrawal)
          Always fire immediately.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beforeCompletionObservedTime

public static long beforeCompletionObservedTime

afterCompletionObservedTime

public static long afterCompletionObservedTime

afterSuccessObservedTime

public static long afterSuccessObservedTime

afterFailureObservedTime

public static long afterFailureObservedTime

noTxObservedTime

public static long noTxObservedTime
Constructor Detail

AccountTransactionObserver

public AccountTransactionObserver()
Method Detail

withdrawAfterSuccess

public void withdrawAfterSuccess(@Observes(during=AFTER_SUCCESS)
                                 Withdrawal withdrawal)
                          throws Exception
Parameters:
withdrawal -
Throws:
Exception

withdrawAfterCompletion

public void withdrawAfterCompletion(@Observes(during=AFTER_COMPLETION)
                                    Withdrawal withdrawal)
                             throws Exception
Parameters:
withdrawal -
Throws:
Exception

withdrawBeforeCompletion

public void withdrawBeforeCompletion(@Observes(during=BEFORE_COMPLETION)
                                     Withdrawal withdrawal)
                              throws Exception
Parameters:
withdrawal -
Throws:
Exception

withdrawNoTx

public void withdrawNoTx(@Observes(during=IN_PROGRESS)
                         Withdrawal withdrawal)
                  throws Exception
Always fire immediately.

Parameters:
withdrawal -
Throws:
Exception

withdrawAfterFailure

public void withdrawAfterFailure(@Observes(during=AFTER_FAILURE)
                                 Withdrawal withdrawal)
                          throws Exception
Parameters:
withdrawal -
Throws:
Exception

reset

public static void reset()

allEventsFiredBeforeCheckpoint

public static boolean allEventsFiredBeforeCheckpoint(long checkpoint)


Copyright © 2008-2012 Seam Framework. All Rights Reserved.