Class GroovyCompilerGremlinPlugin.Builder
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.groovy.jsr223.GroovyCompilerGremlinPlugin.Builder
 
- 
- Enclosing class:
- GroovyCompilerGremlinPlugin
 
 public static final class GroovyCompilerGremlinPlugin.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GroovyCompilerGremlinPlugin.BuilderclassMapCacheSpecification(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.GroovyCompilerGremlinPlugin.Buildercompilation(String compilation)GroovyCompilerGremlinPlugin.Buildercompilation(GroovyCompilerGremlinPlugin.Compilation compilation)GroovyCompilerGremlinPlugin.BuildercompilerConfigurationOptions(Map<String,Object> keyValues)GroovyCompilerGremlinPlugincreate()GroovyCompilerGremlinPlugin.BuilderenableInterpreterMode(boolean interpreterMode)GroovyCompilerGremlinPlugin.BuilderenableThreadInterrupt(boolean threadInterrupt)GroovyCompilerGremlinPlugin.BuilderexpectedCompilationTime(int timeInMillis)If the time it takes to compile a script exceeds the specified time then a warning is written to the logs.GroovyCompilerGremlinPlugin.Builderextensions(String extensions)GroovyCompilerGremlinPlugin.BuilderglobalFunctionCacheEnabled(boolean enabled)Determines if the global function cache in the script engine is enabled or not.GroovyCompilerGremlinPlugin.BuildertimedInterrupt(long timeInMillis)Introduces timed checks to loops and other portions of a script to provide an interrupt for a long running script.
 
- 
- 
- 
Method Detail- 
expectedCompilationTimepublic GroovyCompilerGremlinPlugin.Builder expectedCompilationTime(int timeInMillis) 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.
 - 
enableInterpreterModepublic GroovyCompilerGremlinPlugin.Builder enableInterpreterMode(boolean interpreterMode) 
 - 
compilerConfigurationOptionspublic GroovyCompilerGremlinPlugin.Builder compilerConfigurationOptions(Map<String,Object> keyValues) 
 - 
enableThreadInterruptpublic GroovyCompilerGremlinPlugin.Builder enableThreadInterrupt(boolean threadInterrupt) 
 - 
timedInterruptpublic GroovyCompilerGremlinPlugin.Builder timedInterrupt(long timeInMillis) 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 ownevaluationTimeoutwhich 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.
 - 
compilationpublic GroovyCompilerGremlinPlugin.Builder compilation(GroovyCompilerGremlinPlugin.Compilation compilation) 
 - 
compilationpublic GroovyCompilerGremlinPlugin.Builder compilation(String compilation) 
 - 
extensionspublic GroovyCompilerGremlinPlugin.Builder extensions(String extensions) 
 - 
classMapCacheSpecificationpublic GroovyCompilerGremlinPlugin.Builder classMapCacheSpecification(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.- initialCapacity=[integer]: sets- Caffeine.initialCapacity.
- maximumSize=[long]: sets- Caffeine.maximumSize.
- maximumWeight=[long]: sets- Caffeine.maximumWeight.
- expireAfterAccess=[duration]: sets- Caffeine.expireAfterAccess.
- expireAfterWrite=[duration]: sets- Caffeine.expireAfterWrite.
- refreshAfterWrite=[duration]: sets- Caffeine.refreshAfterWrite.
- weakKeys: sets- Caffeine.weakKeys.
- weakValues: sets- Caffeine.weakValues.
- softValues: sets- Caffeine.softValues.
- recordStats: sets- Caffeine.recordStats.
 - maximumSizeand- maximumWeight
- weakValuesand- softValues
 
 - 
globalFunctionCacheEnabledpublic GroovyCompilerGremlinPlugin.Builder globalFunctionCacheEnabled(boolean enabled) Determines if the global function cache in the script engine is enabled or not. It is enabled by default.
 - 
createpublic GroovyCompilerGremlinPlugin create() 
 
- 
 
-