Class JsExecution
- java.lang.Object
-
- com.anton.martynenko.jswrapper.jsexecution.JsExecution
-
- All Implemented Interfaces:
java.lang.Runnable
@ThreadSafe public final class JsExecution extends java.lang.Object implements java.lang.Runnable
Object representing execution of JS code fragment with details. Class uses GraalJs javascript interpreter as engine- Since:
- 1.0
- Author:
- Martynenko Anton
- See Also:
- GraalVM javascript interpreter
-
-
Constructor Summary
Constructors Constructor Description JsExecution(java.lang.String scriptBody)
Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
Id getter.Status
getStatus()
Status getter.void
run()
void
setId(int id)
Setter for property 'id'.void
setStatus(Status status)
Setter for property 'status'.java.lang.String
toString()
-
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
setId
public void setId(int id)
Setter for property 'id'.- Parameters:
id
- Value to set for property 'id'.
-
getId
public int getId()
Id getter.- Returns:
- current id
-
setStatus
public void setStatus(@NotNull Status status)
Setter for property 'status'.- Parameters:
status
- Value to set for property 'status'.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-