public class V8RuntimeObserverAverageV8HeapStatistics extends java.lang.Object implements IV8RuntimeObserver<V8HeapStatistics>
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 java.util.List<java.util.concurrent.CompletableFuture<V8HeapStatistics>> |
v8HeapStatisticsFutureList
The V8 heap statistics future list.
|
Constructor and Description |
---|
V8RuntimeObserverAverageV8HeapStatistics()
Instantiates a new V8 runtime observer for average V8 heap statistics.
|
V8RuntimeObserverAverageV8HeapStatistics(int capacity,
int timeoutMillis)
Instantiates a new V8 runtime observer for average V8 heap statistics.
|
Modifier and Type | Method and Description |
---|---|
V8HeapStatistics |
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 java.util.List<java.util.concurrent.CompletableFuture<V8HeapStatistics>> v8HeapStatisticsFutureList
public V8RuntimeObserverAverageV8HeapStatistics()
public V8RuntimeObserverAverageV8HeapStatistics(int capacity, int timeoutMillis)
capacity
- the capacitytimeoutMillis
- the timeout millispublic V8HeapStatistics getResult()
IV8RuntimeObserver
getResult
in interface IV8RuntimeObserver<V8HeapStatistics>
public void observe(V8Runtime v8Runtime)
IV8RuntimeObserver
observe
in interface IV8RuntimeObserver<V8HeapStatistics>
v8Runtime
- the V8 runtimepublic void reset()
IV8RuntimeObserver
reset
in interface IV8RuntimeObserver<V8HeapStatistics>