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.RunnableObject 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 intgetId()Id getter.StatusgetStatus()Status getter.voidrun()voidsetId(int id)Setter for property 'id'.voidsetStatus(Status status)Setter for property 'status'.java.lang.StringtoString()
-
-
-
Method Detail
-
run
public void run()
- Specified by:
runin 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:
toStringin classjava.lang.Object
-
-