Class SandboxPoolConfiguration.Builder
java.lang.Object
com.atlassian.confluence.impl.util.sandbox.SandboxPoolConfiguration.Builder
- Enclosing class:
- SandboxPoolConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
withBootstrapClasses
(List<Class<?>> bootstrapClasses) Classes required to bootstrap a sandbox process.withConcurrencyLevel
(int concurrencyLevel) Number of sandbox processes.withDebugPortOffset
(Integer offset) Opens debug port for each sandbox process starting with given offset.withErrorConsumer
(SandboxErrorConsumer errorConsumer) The sandbox server andSandboxTask
log a debug message by writing it to standard error.withJavaOptions
(String... options) withLogLevel
(Level logLevel) withMemoryInMegabytes
(int memoryLimitInMegabytes) Limits memory of sandbox process.withStackInMegabytes
(int stackInMegabytes) Sets the default stack size of sandbox process threads.withStartupTimeLimit
(Duration timeLimit) Sandbox process taking longer that this time to start will be killed.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withConcurrencyLevel
Number of sandbox processes. -
withStartupTimeLimit
Sandbox process taking longer that this time to start will be killed. -
withMemoryInMegabytes
Limits memory of sandbox process. This is done by passing this value to the option-Xmx
of the java command line. -
withStackInMegabytes
Sets the default stack size of sandbox process threads. This is done by passing this value to the option-Xss
of the java command line. -
withBootstrapClasses
Classes required to bootstrap a sandbox process. Most of classes can be requested from the host but in case they are not they can be specified here. -
withErrorConsumer
The sandbox server andSandboxTask
log a debug message by writing it to standard error. This parameter allows us to specify the method to consume standard error of a sandbox process. -
withLogLevel
-
withJavaOptions
-
withDebugPortOffset
Opens debug port for each sandbox process starting with given offset. Null value means no debug port should be opened. -
build
-