com.go.trove.util.tq
Class TransactionQueueEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.go.trove.util.tq.TransactionQueueEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class TransactionQueueEvent
- extends java.util.EventObject
An event that contains information from a TransactionQueue.
TransactionQueueEvents can be received by implementing a
TransactionQueueListener.
- Version:
- 11 , 9/25/00
- Author:
- Brian S O'Neill
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TransactionQueueEvent
public TransactionQueueEvent(TransactionQueue source,
Transaction transaction)
TransactionQueueEvent
public TransactionQueueEvent(TransactionQueue source,
Transaction transaction,
java.lang.Throwable throwable)
TransactionQueueEvent
public TransactionQueueEvent(TransactionQueueEvent event)
- Copies the given event, but gives it a new timestamp and computes a
stage duration.
TransactionQueueEvent
public TransactionQueueEvent(TransactionQueueEvent event,
java.lang.Throwable throwable)
- Copies the given event, but gives it a different throwable, a new
timestamp and computes a stage duration.
getTransactionQueue
public TransactionQueue getTransactionQueue()
getTimestamp
public java.util.Date getTimestamp()
- Returns the date and time of this event.
getTimestampMillis
public long getTimestampMillis()
- Returns the date and time of this event as milliseconds since 1970.
getStageDuration
public long getStageDuration()
- Returns the amount of time, in milliseconds, that the transaction was
in a TransactionQueue stage. The implied meaning of this value depends
on how this event was passed to a listener.
- See Also:
TransactionQueueListener
getTransaction
public Transaction getTransaction()
- Returns the transaction that was being processed by the
TransactionQueue.
getThrowable
public java.lang.Throwable getThrowable()
- Returns the exception that occurred while servicing the transaction, if
applicable.