|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager org.apache.openjpa.event.TransactionEventManager
public class TransactionEventManager
Manager that can be used to track and notify transaction listeners of transaction-related events.
Constructor Summary | |
---|---|
TransactionEventManager()
|
Method Summary | |
---|---|
void |
addListener(Object listener)
Register an event listener. |
protected void |
fireEvent(Object event,
Object listener)
Fire the given event to all registered listeners. |
boolean |
hasBeginListeners()
Whether there are any begin transaction listeners. |
boolean |
hasEndListeners()
Whether there are any end transaction listeners. |
boolean |
hasFlushListeners()
Whether there are any flush transaction listeners. |
boolean |
removeListener(Object listener)
Remove an event listener. |
Methods inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager |
---|
fireEvent, getListeners, hasListener, hasListeners, isFailFast, newListenerCollection, setFailFast |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionEventManager()
Method Detail |
---|
public void addListener(Object listener)
AbstractConcurrentEventManager
addListener
in interface EventManager
addListener
in class AbstractConcurrentEventManager
public boolean removeListener(Object listener)
AbstractConcurrentEventManager
removeListener
in interface EventManager
removeListener
in class AbstractConcurrentEventManager
public boolean hasBeginListeners()
public boolean hasFlushListeners()
public boolean hasEndListeners()
protected void fireEvent(Object event, Object listener)
fireEvent
in class AbstractConcurrentEventManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |