public class V8RuntimeObserverAverageV8HeapSpaceStatistics extends java.lang.Object implements IV8RuntimeObserver<V8HeapSpaceStatistics>
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_CAPACITY
The constant DEFAULT_CAPACITY.
|
protected static int |
DEFAULT_TIMEOUT_MILLIS
The constant DEFAULT_TIMEOUT_MILLIS.
|
protected int |
timeoutMillis
The Timeout millis.
|
protected V8AllocationSpace |
v8AllocationSpace
The V8 allocation space.
|
protected java.util.List<java.util.concurrent.CompletableFuture<V8HeapSpaceStatistics>> |
v8HeapSpaceStatisticsFutureList
The V8 heap space statistics future list.
|
Constructor and Description |
---|
V8RuntimeObserverAverageV8HeapSpaceStatistics(V8AllocationSpace v8AllocationSpace)
Instantiates a new V8 runtime observer for average V8 heap space statistics.
|
V8RuntimeObserverAverageV8HeapSpaceStatistics(V8AllocationSpace v8AllocationSpace,
int capacity,
int timeoutMillis)
Instantiates a new V8 runtime observer for average V8 heap space statistics.
|
Modifier and Type | Method and Description |
---|---|
V8HeapSpaceStatistics |
getResult()
Gets result.
|
void |
observe(V8Runtime v8Runtime)
Observe the input V8 runtime.
|
void |
reset()
Reset.
|
protected static final int DEFAULT_CAPACITY
protected static final int DEFAULT_TIMEOUT_MILLIS
protected final int timeoutMillis
protected final V8AllocationSpace v8AllocationSpace
protected final java.util.List<java.util.concurrent.CompletableFuture<V8HeapSpaceStatistics>> v8HeapSpaceStatisticsFutureList
public V8RuntimeObserverAverageV8HeapSpaceStatistics(V8AllocationSpace v8AllocationSpace)
v8AllocationSpace
- the V8 allocation spacepublic V8RuntimeObserverAverageV8HeapSpaceStatistics(V8AllocationSpace v8AllocationSpace, int capacity, int timeoutMillis)
v8AllocationSpace
- the V8 allocation spacecapacity
- the capacitytimeoutMillis
- the timeout millispublic V8HeapSpaceStatistics getResult()
IV8RuntimeObserver
getResult
in interface IV8RuntimeObserver<V8HeapSpaceStatistics>
public void observe(V8Runtime v8Runtime)
IV8RuntimeObserver
observe
in interface IV8RuntimeObserver<V8HeapSpaceStatistics>
v8Runtime
- the V8 runtimepublic void reset()
IV8RuntimeObserver
reset
in interface IV8RuntimeObserver<V8HeapSpaceStatistics>