public class V8RuntimeObserverAverageV8ModuleCount extends java.lang.Object implements IV8RuntimeObserver<java.lang.Integer>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.Integer> |
v8ModuleCountList
The V8 module count list.
|
Constructor and Description |
---|
V8RuntimeObserverAverageV8ModuleCount()
Instantiates a new V8 runtime observer average V8 module count.
|
V8RuntimeObserverAverageV8ModuleCount(int capacity)
Instantiates a new V8 runtime observer average V8 module 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> v8ModuleCountList
public V8RuntimeObserverAverageV8ModuleCount()
public V8RuntimeObserverAverageV8ModuleCount(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>