|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.nio.DisposableGC
public final class DisposableGC
Specialized garbage-collector that invokes the.
DisposableReference.dispose() method immediately as soon as a
DisposableReference becomes unreferancable and put on the main garbage
collector's list.
| Method Summary | |
|---|---|
void |
drainRefQueue()
Drain ref queue. |
void |
drainRefQueue(long timeout)
Drain ref queue. |
long |
getCleanupThreadTimeout()
Gets the cleanup thread timeout. |
static DisposableGC |
getDefault()
Gets the default. |
void |
invokeSystemGCAndWait()
Invoke system gc and wait. |
void |
invokeSystemGCWithMarker()
Issues a JVM GC request, while injecting a marker reference to be cleaned up by the very same JVM GC run. |
boolean |
isCleanupComplete()
Checks if is cleanup complete. |
boolean |
isCleanupThreadActive()
Checks if is cleanup thread active. |
boolean |
isVerbose()
Checks if is verbose. |
boolean |
isVVerbose()
Checks if is v verbose. |
boolean |
isVVVerbose()
Checks if is vV verbose. |
void |
setCleanupThreadTimeout(long timeout)
Sets the cleanup thread timeout. |
void |
setVerbose(boolean verbose)
Sets the verbose. |
void |
setVVerbose(boolean vverbose)
Sets the v verbose. |
void |
setVVVerbose(boolean vvverbose)
Sets the vV verbose. |
void |
startCleanupThread()
Start cleanup thread. |
void |
stopCleanupThread()
Stop cleanup thread. |
void |
waitForForcableCleanup()
Wait for forcable cleanup. |
boolean |
waitForForcableCleanup(long timeout)
Wait for forcable cleanup. |
void |
waitForFullCleanup()
Wait for full cleanup. |
boolean |
waitForFullCleanup(long timeout)
Wait for full cleanup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DisposableGC getDefault()
public void drainRefQueue()
public void drainRefQueue(long timeout)
throws java.lang.IllegalArgumentException,
java.lang.InterruptedException
timeout - the timeout
java.lang.IllegalArgumentException - the illegal argument exception
java.lang.InterruptedException - the interrupted exceptionpublic long getCleanupThreadTimeout()
public void invokeSystemGCAndWait()
public void invokeSystemGCWithMarker()
public boolean isCleanupComplete()
public boolean isCleanupThreadActive()
public boolean isVerbose()
public boolean isVVerbose()
public boolean isVVVerbose()
public void setCleanupThreadTimeout(long timeout)
timeout - the new cleanup thread timeoutpublic void setVerbose(boolean verbose)
verbose - the verbose to setpublic void setVVerbose(boolean vverbose)
vverbose - the vverbose to setpublic void setVVVerbose(boolean vvverbose)
vvverbose - the vvverbose to setpublic void startCleanupThread()
public void stopCleanupThread()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exception
public void waitForForcableCleanup()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exception
public boolean waitForForcableCleanup(long timeout)
throws java.lang.InterruptedException
timeout - the timeout
java.lang.InterruptedException - the interrupted exception
public void waitForFullCleanup()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exception
public boolean waitForFullCleanup(long timeout)
throws java.lang.InterruptedException
timeout - the timeout
java.lang.InterruptedException - the interrupted exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||