|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.javax.sip.stack.Janitor
This class is in charge of periodical cleaning. Objects which require periodical cleaning register here. They must implement the Cleanable interface. Design note: this replaces the old Manager classes. Each of them was in charge of periodical cleaning for a specific class and was running its own thread. Now, there is a single thread running, which is in charge of all cleaning.
Constructor Summary | |
Janitor(Integer sleepingTime)
Constructor |
Method Summary | |
void |
register(Cleanable object)
Add a new object to be periodically cleaned |
void |
run()
This is the code that periodically clean the objects |
void |
unregister(Cleanable object)
Remove from the list an object to be cleaned |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Janitor(Integer sleepingTime)
sleepingTime
- The period between each cleaningMethod Detail |
public void register(Cleanable object)
object
- The object to be cleaned (must implement Cleanable)public void unregister(Cleanable object)
object
- The object to removepublic void run()
run
in interface Runnable
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |