public class RefWatcherBuilder<T extends RefWatcherBuilder<T>>
extends java.lang.Object
RefWatcher instances. Subclasses should provide sane defaults
for the platform they support.| Constructor and Description |
|---|
RefWatcherBuilder() |
| Modifier and Type | Method and Description |
|---|---|
RefWatcher |
build()
Creates a
RefWatcher. |
T |
debuggerControl(DebuggerControl debuggerControl) |
protected DebuggerControl |
defaultDebuggerControl() |
protected ExcludedRefs |
defaultExcludedRefs() |
protected GcTrigger |
defaultGcTrigger() |
protected HeapDumper |
defaultHeapDumper() |
protected HeapDump.Listener |
defaultHeapDumpListener() |
protected WatchExecutor |
defaultWatchExecutor() |
T |
excludedRefs(ExcludedRefs excludedRefs) |
T |
gcTrigger(GcTrigger gcTrigger) |
T |
heapDumper(HeapDumper heapDumper) |
T |
heapDumpListener(HeapDump.Listener heapDumpListener) |
protected boolean |
isDisabled() |
protected T |
self() |
T |
watchExecutor(WatchExecutor watchExecutor) |
public final T heapDumpListener(HeapDump.Listener heapDumpListener)
HeapDump.Listenerpublic final T excludedRefs(ExcludedRefs excludedRefs)
ExcludedRefspublic final T heapDumper(HeapDumper heapDumper)
HeapDumperpublic final T debuggerControl(DebuggerControl debuggerControl)
DebuggerControlpublic final T watchExecutor(WatchExecutor watchExecutor)
WatchExecutorpublic final RefWatcher build()
RefWatcher.protected boolean isDisabled()
protected GcTrigger defaultGcTrigger()
protected DebuggerControl defaultDebuggerControl()
protected ExcludedRefs defaultExcludedRefs()
protected HeapDumper defaultHeapDumper()
protected HeapDump.Listener defaultHeapDumpListener()
protected WatchExecutor defaultWatchExecutor()
protected final T self()