Class GroovyCompilerGremlinPlugin.Builder
java.lang.Object
org.apache.tinkerpop.gremlin.groovy.jsr223.GroovyCompilerGremlinPlugin.Builder
- Enclosing class:
- GroovyCompilerGremlinPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclassMapCacheSpecification(String cacheSpec) Sets the cache specification for the class map which holds compiled scripts and uses the comma separated syntax of the caffeine cache for configuration.compilation(String compilation) compilation(GroovyCompilerGremlinPlugin.Compilation compilation) compilerConfigurationOptions(Map<String, Object> keyValues) create()enableInterpreterMode(boolean interpreterMode) enableThreadInterrupt(boolean threadInterrupt) expectedCompilationTime(int timeInMillis) If the time it takes to compile a script exceeds the specified time then a warning is written to the logs.extensions(String extensions) globalFunctionCacheEnabled(boolean enabled) Determines if the global function cache in the script engine is enabled or not.timedInterrupt(long timeInMillis) Introduces timed checks to loops and other portions of a script to provide an interrupt for a long running script.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expectedCompilationTime
If the time it takes to compile a script exceeds the specified time then a warning is written to the logs. Defaults to 5000ms and must be greater than zero. -
enableInterpreterMode
-
compilerConfigurationOptions
public GroovyCompilerGremlinPlugin.Builder compilerConfigurationOptions(Map<String, Object> keyValues) -
enableThreadInterrupt
-
timedInterrupt
Introduces timed checks to loops and other portions of a script to provide an interrupt for a long running script. This configuration should not be used in conjunction with the Gremlin Server which has its owntimeoutMilliswhich performs a similar task but in a more complete way specific to the server. Configuring both may lead to inconsistent timeout errors returning from the server. This configuration should only be used if configuring a standalone instance fo theGremlinGroovyScriptEngine. -
compilation
public GroovyCompilerGremlinPlugin.Builder compilation(GroovyCompilerGremlinPlugin.Compilation compilation) -
compilation
-
extensions
-
classMapCacheSpecification
Sets the cache specification for the class map which holds compiled scripts and uses the comma separated syntax of the caffeine cache for configuration.initialCapacity=[integer]: setsCaffeine.initialCapacity.maximumSize=[long]: setsCaffeine.maximumSize.maximumWeight=[long]: setsCaffeine.maximumWeight.expireAfterAccess=[duration]: setsCaffeine.expireAfterAccess.expireAfterWrite=[duration]: setsCaffeine.expireAfterWrite.refreshAfterWrite=[duration]: setsCaffeine.refreshAfterWrite.weakKeys: setsCaffeine.weakKeys.weakValues: setsCaffeine.weakValues.softValues: setsCaffeine.softValues.recordStats: setsCaffeine.recordStats.
maximumSizeandmaximumWeightweakValuesandsoftValues
-
globalFunctionCacheEnabled
Determines if the global function cache in the script engine is enabled or not. It is enabled by default. -
create
-