Package org.cometd.javascript
Class JavaScript
java.lang.Object
org.cometd.javascript.JavaScript
- All Implemented Interfaces:
Runnable
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JavaScript
public JavaScript()
-
-
Method Details
-
bindings
public org.graalvm.polyglot.Value bindings() -
init
public void init() -
destroy
- Throws:
Exception
-
run
public void run() -
invoke
-
evaluate
-
evaluate
-
get
-
put
-
schedule
Invoked frombrowser.js
.- Parameters:
jsThis
- the JavaScriptthis
referencefunction
- the function to invoke after the given delaydelay
- the delay after which the function is invoked, in milliseconds- Returns:
- a task representing the scheduled execution
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Object jsThis, Object function, long initialDelay, long delay)Invoked frombrowser.js
.- Parameters:
jsThis
- the JavaScriptthis
referencefunction
- the function to invoke after the given delayinitialDelay
- the delay of the first execution, in millisecondsdelay
- the delay after which the function is invoked, in milliseconds- Returns:
- a task representing the scheduled execution
-