Class JsEvaluator

java.lang.Object
delight.nashornsandbox.internal.JsEvaluator
All Implemented Interfaces:
Runnable

class JsEvaluator extends Object implements Runnable
The JavaScript evaluator. It is designed to run Nashorn engine in separate thread (using provided ExecutorService), to allow limit cpu time consumed.

Created on 2017.11.22

Version:
$Id$
  • Field Details

  • Constructor Details

  • Method Details

    • isScriptKilled

      boolean isScriptKilled()
    • isCPULimitExceeded

      boolean isCPULimitExceeded()
    • isMemoryLimitExceeded

      boolean isMemoryLimitExceeded()
    • runMonitor

      void runMonitor()
      Enter the monitor method. It should be called from main thread.
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getException

      Exception getException()
    • getResult

      Object getResult()