|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.sun.jini.outrigger.ExpirationOpQueue
class ExpirationOpQueue
Logs expiration of leases and asynchronously persists them to disk.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private boolean |
dead
true if we should stop |
private static Logger |
logger
Logger for logging exceptions |
private LinkedList |
queue
The queue of expirations to log |
private OutriggerServerImpl |
server
The server we are working for |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ExpirationOpQueue(OutriggerServerImpl server)
Create a new ExpirationOpQueue that
will handle lease expiration logging for the
specified server. |
Method Summary | |
---|---|
(package private) void |
enqueue(Uuid cookie)
Enqueue the logging of the expiration of the specified lease. |
void |
run()
|
(package private) void |
terminate()
Stop the queue |
Methods inherited from class java.lang.Thread |
---|
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, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private boolean dead
true
if we should stop
private final LinkedList queue
private final OutriggerServerImpl server
private static final Logger logger
Constructor Detail |
---|
ExpirationOpQueue(OutriggerServerImpl server)
ExpirationOpQueue
that
will handle lease expiration logging for the
specified server.
server
- the OutriggerServerImpl
to
log for.Method Detail |
---|
void enqueue(Uuid cookie)
cookie
- The cookie of the lease that has expired.void terminate()
public void run()
run
in interface Runnable
run
in class Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |