Interface HeapDumpWebEndpoint.HeapDumper
- All Known Implementing Classes:
HeapDumpWebEndpoint.HotSpotDiagnosticMXBeanHeapDumper
- Enclosing class:
- HeapDumpWebEndpoint
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface used to dump the heap to a file.
-
Method Summary
-
Method Details
-
dumpHeap
Dump the current heap to the specified file.- Parameters:
file
- the file to dump the heap tolive
- if only live objects (i.e. objects that are reachable from others) should be dumped- Throws:
IOException
- on IO errorInterruptedException
- on thread interruption
-