@Immutable public final class DefaultJavaScriptConfig extends Object implements JavaScriptConfig
JavaScriptConfig.JavaScriptConfigValue| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Duration |
getMaxScriptExecutionTime()
Returns the maximum execution time of a mapping script to run.
|
int |
getMaxScriptSizeBytes()
Returns the maximum script size in bytes of a mapping script to run.
|
int |
getMaxScriptStackDepth()
Returns the maximum call stack depth in the mapping script.
|
int |
hashCode() |
static DefaultJavaScriptConfig |
of(com.typesafe.config.Config config)
Returns an instance of
DefaultJavaScriptConfig based on the settings of the specified Config. |
String |
toString() |
public static DefaultJavaScriptConfig of(com.typesafe.config.Config config)
DefaultJavaScriptConfig based on the settings of the specified Config.config - is supposed to provide the settings of the JavaScript mapping config at .org.eclipse.ditto.services.utils.config.DittoConfigError - if config is invalid.public int getMaxScriptSizeBytes()
JavaScriptConfiggetMaxScriptSizeBytes in interface JavaScriptConfigpublic Duration getMaxScriptExecutionTime()
JavaScriptConfiggetMaxScriptExecutionTime in interface JavaScriptConfigpublic int getMaxScriptStackDepth()
JavaScriptConfiggetMaxScriptStackDepth in interface JavaScriptConfigCopyright © 2017–2019 Eclipse Foundation. All rights reserved.