public final class V8Guard extends java.lang.Object implements IJavetClosable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMEOUT_MILLIS
The constant DEFAULT_TIMEOUT_MILLIS.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel.
|
void |
close() |
long |
getEndTimeMillis()
Gets end time millis.
|
long |
getStartTimeMillis()
Gets start time millis.
|
long |
getTimeoutMillis()
Gets timeout millis.
|
V8Runtime |
getV8Runtime()
Gets V8 runtime.
|
boolean |
isClosed()
Is closed.
|
boolean |
isDebugModeEnabled()
Is debug mode enabled.
|
void |
setDebugModeEnabled(boolean debugModeEnabled)
Sets debug mode enabled.
|
void |
setTimeoutMillis(long timeoutMillis)
Sets timeout millis.
|
public static final int DEFAULT_TIMEOUT_MILLIS
public void cancel()
public void close() throws JavetException
close
in interface IJavetClosable
close
in interface java.lang.AutoCloseable
JavetException
public long getEndTimeMillis()
public long getStartTimeMillis()
public long getTimeoutMillis()
public V8Runtime getV8Runtime()
public boolean isClosed()
IJavetClosable
isClosed
in interface IJavetClosable
public boolean isDebugModeEnabled()
public void setDebugModeEnabled(boolean debugModeEnabled)
debugModeEnabled
- the debug mode enabledpublic void setTimeoutMillis(long timeoutMillis)
timeoutMillis
- the timeout millis