public class V8RuntimeObserverAverageReferenceCount extends java.lang.Object implements IV8RuntimeObserver<java.lang.Integer>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.Integer> |
referenceCountList
The Reference count list.
|
| Constructor and Description |
|---|
V8RuntimeObserverAverageReferenceCount()
Instantiates a new V8 runtime observer average reference count.
|
V8RuntimeObserverAverageReferenceCount(int capacity)
Instantiates a new V8 runtime observer average reference 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> referenceCountList
public V8RuntimeObserverAverageReferenceCount()
public V8RuntimeObserverAverageReferenceCount(int capacity)
capacity - the capacitypublic java.lang.Integer getResult()
IV8RuntimeObservergetResult in interface IV8RuntimeObserver<java.lang.Integer>public void observe(V8Runtime v8Runtime)
IV8RuntimeObserverobserve in interface IV8RuntimeObserver<java.lang.Integer>v8Runtime - the V8 runtimepublic void reset()
IV8RuntimeObserverreset in interface IV8RuntimeObserver<java.lang.Integer>