Package com.arcadedb.query.polyglot
Class GraalPolyglotEngine.Builder
- java.lang.Object
-
- com.arcadedb.query.polyglot.GraalPolyglotEngine.Builder
-
- Enclosing class:
- GraalPolyglotEngine
public static final class GraalPolyglotEngine.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraalPolyglotEngine
build()
GraalPolyglotEngine.Builder
setAllowedPackages(List<String> allowedPackages)
GraalPolyglotEngine.Builder
setLanguage(String language)
GraalPolyglotEngine.Builder
setMaxExecutionTimeMs(long maxExecutionTimeMs)
GraalPolyglotEngine.Builder
setOutput(OutputStream output)
GraalPolyglotEngine.Builder
setRestrictedPackages(List<String> restrictedPackages)
-
-
-
Constructor Detail
-
Builder
protected Builder(Database database, org.graalvm.polyglot.Engine sharedEngine)
-
-
Method Detail
-
setLanguage
public GraalPolyglotEngine.Builder setLanguage(String language)
-
setMaxExecutionTimeMs
public GraalPolyglotEngine.Builder setMaxExecutionTimeMs(long maxExecutionTimeMs)
-
setOutput
public GraalPolyglotEngine.Builder setOutput(OutputStream output)
-
setAllowedPackages
public GraalPolyglotEngine.Builder setAllowedPackages(List<String> allowedPackages)
-
setRestrictedPackages
public GraalPolyglotEngine.Builder setRestrictedPackages(List<String> restrictedPackages)
-
build
public GraalPolyglotEngine build()
-
-