public static final class GroovyCompilerGremlinPlugin.Builder extends Object
Constructor and Description |
---|
Builder() |
public GroovyCompilerGremlinPlugin.Builder expectedCompilationTime(int timeInMillis)
public GroovyCompilerGremlinPlugin.Builder enableInterpreterMode(boolean interpreterMode)
public GroovyCompilerGremlinPlugin.Builder compilerConfigurationOptions(Map<String,Object> keyValues)
public GroovyCompilerGremlinPlugin.Builder enableThreadInterrupt(boolean threadInterrupt)
public GroovyCompilerGremlinPlugin.Builder timedInterrupt(long timeInMillis)
scriptEvaluationTimeout
which 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 the GremlinGroovyScriptEngine
.public GroovyCompilerGremlinPlugin.Builder compilation(GroovyCompilerGremlinPlugin.Compilation compilation)
public GroovyCompilerGremlinPlugin.Builder compilation(String compilation)
public GroovyCompilerGremlinPlugin.Builder extensions(String extensions)
public GroovyCompilerGremlinPlugin.Builder classMapCacheSpecification(String cacheSpec)
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
.
maximumSize
and maximumWeight
weakValues
and softValues
public GroovyCompilerGremlinPlugin create()
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.