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() |
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 T stethoscopeClasses(java.util.List<java.lang.Class<? extends Reachability.Inspector>> stethoscopeClasses)
Reachability.Inspectorpublic final T computeRetainedHeapSize(boolean computeRetainedHeapSize)
public 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 java.util.List<java.lang.Class<? extends Reachability.Inspector>> defaultReachabilityInspectorClasses()
protected final T self()