Class InMemoryAllocationTracker
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.mem.InMemoryAllocationTracker
-
- All Implemented Interfaces:
java.util.function.Supplier<java.lang.String>
,AllocationTracker
public class InMemoryAllocationTracker extends java.lang.Object implements AllocationTracker
-
-
Constructor Summary
Constructors Constructor Description InMemoryAllocationTracker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long bytes)
Add the given number of bytes to the total tracked amount.static AllocationTracker
create()
static AllocationTracker
ignoring(org.neo4j.graphalgo.compat.AllocationTrackerAdapter ignored)
void
remove(long bytes)
Remove the given number of bytes from the total tracked amount.long
trackedBytes()
Return the current total of tracked bytes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.graphalgo.core.utils.mem.AllocationTracker
get, getUsageString, getUsageString
-
-
-
-
Method Detail
-
add
public void add(long bytes)
Description copied from interface:AllocationTracker
Add the given number of bytes to the total tracked amount.- Specified by:
add
in interfaceAllocationTracker
-
remove
public void remove(long bytes)
Description copied from interface:AllocationTracker
Remove the given number of bytes from the total tracked amount.- Specified by:
remove
in interfaceAllocationTracker
-
trackedBytes
public long trackedBytes()
Description copied from interface:AllocationTracker
Return the current total of tracked bytes.- Specified by:
trackedBytes
in interfaceAllocationTracker
-
create
public static AllocationTracker create()
-
ignoring
public static AllocationTracker ignoring(org.neo4j.graphalgo.compat.AllocationTrackerAdapter ignored)
-
-