|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.service.transaction.TransactionListenerDetailImpl
class TransactionListenerDetailImpl
Simple implementation of TransactionListenerDetail that
is package-private and used by TransactionImpl to report
detail associated with each listener.
| Constructor Summary | |
|---|---|
TransactionListenerDetailImpl(String listenerName)
Creates an instance of TransactionListenerDetailImpl for the
given named listener. |
|
| Method Summary | |
|---|---|
boolean |
abortedBeforeCompletion()
Returns whether the listener's beforeCompletion method
threw an exception thus aborting the transaction. |
boolean |
calledBeforeCompletion()
Returns whether the listener's beforeCompletion method
was called. |
long |
getAfterCompletionTime()
Returns the length of time the listener spent in its afterCompletion call. |
long |
getBeforeCompletionTime()
Returns the length of time the listener spent in its beforeCompletion call. |
String |
getListenerName()
Returns the name of the listener. |
(package private) void |
setCalledAfterCompletion(long time)
Sets that the listener's afterCompletion method was called
and how long the call took. |
(package private) void |
setCalledBeforeCompletion(boolean failed,
long time)
Sets that the listener's beforeCompletion method was called,
whether it failed, and how long the call took |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
TransactionListenerDetailImpl(String listenerName)
TransactionListenerDetailImpl for the
given named listener.
listenerName - the name of the listener associated with this detail| Method Detail |
|---|
public String getListenerName()
getListenerName in interface TransactionListenerDetailpublic boolean calledBeforeCompletion()
beforeCompletion method
was called.
calledBeforeCompletion in interface TransactionListenerDetailtrue if the listener's beforeCompletion method
was called, false otherwisepublic boolean abortedBeforeCompletion()
beforeCompletion method
threw an exception thus aborting the transaction.
abortedBeforeCompletion in interface TransactionListenerDetailtrue if the listener's beforeCompletion method
aborted the transaction, false otherwisepublic long getBeforeCompletionTime()
beforeCompletion call.
getBeforeCompletionTime in interface TransactionListenerDetailpublic long getAfterCompletionTime()
afterCompletion call.
getAfterCompletionTime in interface TransactionListenerDetail
void setCalledBeforeCompletion(boolean failed,
long time)
beforeCompletion method was called,
whether it failed, and how long the call took
void setCalledAfterCompletion(long time)
afterCompletion method was called
and how long the call took.
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||