com.sun.jini.outrigger
Class OutriggerServerImpl.Reaper

java.lang.Object
  extended by java.lang.Thread
      extended by com.sun.jini.outrigger.OutriggerServerImpl.Reaper
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
OutriggerServerImpl.ContentsQueryReaper, OutriggerServerImpl.EntryReaper, OutriggerServerImpl.TemplateReaper
Enclosing class:
OutriggerServerImpl

private abstract class OutriggerServerImpl.Reaper
extends Thread

Base class for our house keeping threads. Provides a common interface for thread termination that does not rely on the JDK propagating InteruptException properly.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean dead
           
private  long interval
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private OutriggerServerImpl.Reaper(String name, long interval)
           
 
Method Summary
private  void kill()
           
(package private) abstract  void reap()
           
 void run()
           
 
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

interval

private final long interval

dead

private boolean dead
Constructor Detail

OutriggerServerImpl.Reaper

private OutriggerServerImpl.Reaper(String name,
                                   long interval)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

reap

abstract void reap()

kill

private void kill()


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.