|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portaluiinfrastructure.application.PTGarbageCollectorRunnable
public class PTGarbageCollectorRunnable
This class calls the garbage collector at regular intervals. This is wrapped in a thread so it can be interrupted. Thread priority is controlled by the thread class itself and can be set. Interval in milliseconds between gc's can be set. Teh shutdown boolean is used by the app server to terminate the thread.
PTGarbageCollectorThread
Constructor Summary | |
---|---|
PTGarbageCollectorRunnable()
Code executed in a thread to call garbage collector at regular intervals. |
Method Summary | |
---|---|
long |
getGarbageCollectInterval()
Gets the interval in milliseconds between garbage collections. |
boolean |
isShutDown()
Tests the value of the shutDown boolean. |
void |
run()
|
void |
setGarbageCollectInterval(long i)
Sets the interval for garbage collection in milliseconds. |
void |
setShutDown(boolean b)
Sets the shut down boolean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PTGarbageCollectorRunnable()
Method Detail |
---|
public void run()
public long getGarbageCollectInterval()
public boolean isShutDown()
public void setGarbageCollectInterval(long i)
i
- public void setShutDown(boolean b)
b
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |