|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.go.trove.util.tq.TransactionQueueAdapter
Abstract implementation of TransactionQueueListener and UncaughtExceptionListener that make it easier to implement those listeners.
| Constructor Summary | |
TransactionQueueAdapter()
|
|
| Method Summary | |
void |
transactionDequeued(TransactionQueueEvent e)
Called when the transaction is dequeued and ready to be serviced. |
void |
transactionEnqueued(TransactionQueueEvent e)
Called when the transaction is successfully enqueued. |
void |
transactionException(TransactionQueueEvent e)
Called if an exception was thrown while trying to service the transaction. |
void |
transactionExpired(TransactionQueueEvent e)
Called if a transaction couldn't be serviced because it expired. |
void |
transactionQueueFull(TransactionQueueEvent e)
Called if the transaction couldn't be enqueued because the queue is full. |
void |
transactionServiced(TransactionQueueEvent e)
Called after the transaction has been serviced, unless an exception was thrown while trying to service the transaction. |
void |
uncaughtException(UncaughtExceptionEvent event)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransactionQueueAdapter()
| Method Detail |
public void transactionQueueFull(TransactionQueueEvent e)
TransactionQueueListenerThe stage duration value in the event is zero.
transactionQueueFull in interface TransactionQueueListenerpublic void transactionEnqueued(TransactionQueueEvent e)
TransactionQueueListenerThe stage duration value in the event is zero.
transactionEnqueued in interface TransactionQueueListenerpublic void transactionDequeued(TransactionQueueEvent e)
TransactionQueueListenerThe stage duration value in the event represents the amount of time the transaction was queued.
transactionDequeued in interface TransactionQueueListenerpublic void transactionServiced(TransactionQueueEvent e)
TransactionQueueListenerThe stage duration value in the event represents the amount of time the transaction took to service.
transactionServiced in interface TransactionQueueListenerpublic void transactionExpired(TransactionQueueEvent e)
TransactionQueueListenerThe stage duration value in the event represents the age of the expired transaction.
transactionExpired in interface TransactionQueueListenerpublic void transactionException(TransactionQueueEvent e)
TransactionQueueListenerThe stage duration value in the event represents the amount of time that passed servicing the transaction before an exception was thrown and after the transaction is cancelled.
transactionException in interface TransactionQueueListenerpublic void uncaughtException(UncaughtExceptionEvent event)
uncaughtException in interface UncaughtExceptionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||