|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.jwall.web.audit.AuditEventDispatcher
public class AuditEventDispatcher
This interface defines the method required by a class that somehow produces events and dispatches them to all of the registered listeners.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static boolean |
DEBUG
|
static int |
READER_WAITING_TIME
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
AuditEventDispatcher()
|
|
AuditEventDispatcher(AuditEventReader src)
|
|
| Method Summary | |
|---|---|
void |
add(AuditEvent evt)
|
void |
addAuditEventListener(AuditEventListener listener)
Register another listener which is to be notified if another event has been created. |
void |
close()
|
void |
enqueueEvent(AuditEvent evt)
|
void |
removeAuditEventListener(AuditEventListener listener)
Remove the given listener from the list of listeners. |
void |
run()
This is a loop that fetches events from the AuditEventSource associated with this dispatcher and notifies the registered listeners. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int READER_WAITING_TIME
public static final boolean DEBUG
| Constructor Detail |
|---|
public AuditEventDispatcher()
public AuditEventDispatcher(AuditEventReader src)
src - | Method Detail |
|---|
public void add(AuditEvent evt)
public void enqueueEvent(AuditEvent evt)
public void addAuditEventListener(AuditEventListener listener)
listener - public void removeAuditEventListener(AuditEventListener listener)
listener - public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
public void close()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||