R
- the type parameterpublic interface IJavetEnginePool<R extends V8Runtime> extends IJavetClosable
Modifier and Type | Method and Description |
---|---|
int |
getActiveEngineCount()
Gets active engine count.
|
default int |
getAverageCallbackContextCount()
Gets average callback context count.
|
default int |
getAverageReferenceCount()
Gets average reference count.
|
default V8HeapSpaceStatistics |
getAverageV8HeapSpaceStatistics(V8AllocationSpace v8AllocationSpace)
Gets average V8 heap space statistics.
|
default V8HeapStatistics |
getAverageV8HeapStatistics()
Gets average V8 heap statistics.
|
default int |
getAverageV8ModuleCount()
Gets average V8 module count.
|
JavetEngineConfig |
getConfig()
Gets config.
|
IJavetEngine<R> |
getEngine()
Gets engine.
|
int |
getIdleEngineCount()
Gets idle engine count.
|
int |
getReleasedEngineCount()
Gets released engine count.
|
V8SharedMemoryStatistics |
getV8SharedMemoryStatistics()
Gets V8 shared memory statistics.
|
boolean |
isActive()
Is active.
|
boolean |
isQuitting()
Is quitting boolean.
|
int |
observe(IV8RuntimeObserver<?>... observers)
Traverse the internal V8 runtimes, apply the observer and return the observed V8 runtime count.
|
void |
releaseEngine(IJavetEngine<R> iJavetEngine)
Release engine.
|
void |
wakeUpDaemon()
Wake up the daemon thread explicitly.
|
close, isClosed
int getActiveEngineCount()
default int getAverageCallbackContextCount()
default int getAverageReferenceCount()
default V8HeapSpaceStatistics getAverageV8HeapSpaceStatistics(V8AllocationSpace v8AllocationSpace)
v8AllocationSpace
- the V8 allocation spacedefault V8HeapStatistics getAverageV8HeapStatistics()
default int getAverageV8ModuleCount()
JavetEngineConfig getConfig()
@CheckReturnValue IJavetEngine<R> getEngine() throws JavetException
JavetException
- the javet exceptionint getIdleEngineCount()
int getReleasedEngineCount()
V8SharedMemoryStatistics getV8SharedMemoryStatistics()
boolean isActive()
boolean isQuitting()
int observe(IV8RuntimeObserver<?>... observers)
observers
- the observersvoid releaseEngine(IJavetEngine<R> iJavetEngine)
iJavetEngine
- the javet enginevoid wakeUpDaemon()