public abstract class CollectionPolicy extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CollectionPolicy.BySpaceAndTime
A collection policy that delays complete collections until the heap has at least `-Xms` space
in it, and then tries to balance time in incremental and complete collections.
|
static class |
CollectionPolicy.ByTime
A collection policy that attempts to balance the time spent in incremental collections and
the time spent in full collections.
|
static class |
CollectionPolicy.NeverCollect
For debugging: A collection policy that never collects.
|
static class |
CollectionPolicy.OnlyCompletely
For debugging: A collection policy that only collects completely.
|
static class |
CollectionPolicy.OnlyIncrementally
For debugging: A collection policy that only collects incrementally.
|
static class |
CollectionPolicy.Options |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
collectCompletely()
Return true if this collection should be a complete collection.
|
abstract boolean |
collectIncrementally()
Return true if this collection should do an incremental collection.
|
protected static GCImpl.Accounting |
getAccounting() |
abstract void |
nameToLog(Log log) |
public abstract boolean collectIncrementally()
public abstract boolean collectCompletely()
public abstract void nameToLog(Log log)
protected static GCImpl.Accounting getAccounting()