public static class WikittyServiceNotifier.EventThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected org.nuiton.util.ListenerSet<WikittyListener> |
allWikittyServiceListeners
Wikitty service listener (all event).
|
protected LinkedBlockingQueue<WikittyEvent> |
eventToSend
reference vers la collection qui contient les events a envoyer
|
protected long |
lastEventTime
heure du dernier event envoye
|
protected org.nuiton.util.ListenerSet<WikittyListener> |
localWikittyServiceListeners
Wikitty service listener (only for local event).
|
protected boolean |
mustBeRunning |
protected org.nuiton.util.ListenerSet<WikittyListener> |
remoteWikittyServiceListeners
Wikitty service listener (only for remote event).
|
protected SortedMap<Long,Object> |
waiter |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
WikittyServiceNotifier.EventThread(LinkedBlockingQueue<WikittyEvent> eventToSend,
org.nuiton.util.ListenerSet<WikittyListener> allWikittyServiceListeners,
org.nuiton.util.ListenerSet<WikittyListener> localWikittyServiceListeners,
org.nuiton.util.ListenerSet<WikittyListener> remoteWikittyServiceListeners) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
askStop()
demande l'arret du thread, ne doit ĂȘtre appeler que par le finalize
du WikittyServiceNotifier
|
protected void |
processEventQueue() |
void |
run() |
boolean |
stopAsked()
retourne vrai si on a demande l'arret du thread
|
void |
waitFor(long eventTime)
thread that want wait for particulare event to be processed, can be
call this method with event time in argument.
|
activeCount, checkAccess, clone, 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, yieldprotected boolean mustBeRunning
protected LinkedBlockingQueue<WikittyEvent> eventToSend
protected org.nuiton.util.ListenerSet<WikittyListener> allWikittyServiceListeners
protected org.nuiton.util.ListenerSet<WikittyListener> localWikittyServiceListeners
protected org.nuiton.util.ListenerSet<WikittyListener> remoteWikittyServiceListeners
protected long lastEventTime
public WikittyServiceNotifier.EventThread(LinkedBlockingQueue<WikittyEvent> eventToSend, org.nuiton.util.ListenerSet<WikittyListener> allWikittyServiceListeners, org.nuiton.util.ListenerSet<WikittyListener> localWikittyServiceListeners, org.nuiton.util.ListenerSet<WikittyListener> remoteWikittyServiceListeners)
protected void askStop()
public boolean stopAsked()
public void waitFor(long eventTime)
throws InterruptedException
InterruptedExceptionprotected void processEventQueue()
Copyright © 2009-2012 CodeLutin. All Rights Reserved.