public class V8RuntimeObserverAverageCallbackContextCount extends java.lang.Object implements IV8RuntimeObserver<java.lang.Integer>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.Integer> |
callbackContextCountList
The Callback context count list.
|
Constructor and Description |
---|
V8RuntimeObserverAverageCallbackContextCount()
Instantiates a new V8 runtime observer average callback context count.
|
V8RuntimeObserverAverageCallbackContextCount(int capacity)
Instantiates a new V8 runtime observer average callback context count.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getResult()
Gets result.
|
void |
observe(V8Runtime v8Runtime)
Observe the input V8 runtime.
|
void |
reset()
Reset.
|
protected final java.util.List<java.lang.Integer> callbackContextCountList
public V8RuntimeObserverAverageCallbackContextCount()
public V8RuntimeObserverAverageCallbackContextCount(int capacity)
capacity
- the capacitypublic java.lang.Integer getResult()
IV8RuntimeObserver
getResult
in interface IV8RuntimeObserver<java.lang.Integer>
public void observe(V8Runtime v8Runtime)
IV8RuntimeObserver
observe
in interface IV8RuntimeObserver<java.lang.Integer>
v8Runtime
- the V8 runtimepublic void reset()
IV8RuntimeObserver
reset
in interface IV8RuntimeObserver<java.lang.Integer>