public static class EventingFunctionSettings.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EventingFunctionSettings.Builder |
appLogDir(String appLogDir)
Directory to write content of log() message files.
|
EventingFunctionSettings.Builder |
appLogMaxFiles(long appLogMaxFiles)
Number of log() message files to retain when rotating.
|
EventingFunctionSettings.Builder |
appLogMaxSize(long appLogMaxSize)
Rotate logs when file grows to this size in bytes approximately.
|
EventingFunctionSettings.Builder |
bucketCacheAge(long bucketCacheAge)
Time in milliseconds after which a cached bucket object is considered stale.
|
EventingFunctionSettings.Builder |
bucketCacheSize(long bucketCacheSize)
Maximum size in bytes the bucket cache can grow to.
|
EventingFunctionSettings |
build()
Builds the
EventingFunctionSettings . |
EventingFunctionSettings.Builder |
checkpointInterval(Duration checkpointInterval)
Number of seconds before writing a progress checkpoint.
|
EventingFunctionSettings.Builder |
cppWorkerThreadCount(long cppWorkerThreadCount)
Number of threads each worker utilizes.
|
EventingFunctionSettings.Builder |
curlMaxAllowedRespSize(long curlMaxAllowedRespSize)
Maximum allowable curl call response in 'MegaBytes'.
|
EventingFunctionSettings.Builder |
dcpStreamBoundary(EventingFunctionDcpBoundary dcpStreamBoundary)
Indicates where to start dcp stream from (beginning of time, present point).
|
EventingFunctionSettings.Builder |
description(String description)
Free form text for user to describe the handler.
|
EventingFunctionSettings.Builder |
enableAppLogRotation(boolean enableAppLogRotation)
Enable rotating this handlers log() message files.
|
EventingFunctionSettings.Builder |
executionTimeout(Duration executionTimeout)
Maximum time the handler can run before it is forcefully terminated.
|
EventingFunctionSettings.Builder |
handlerFooters(List<String> handlerFooters)
Code to automatically append to bottom of handler code.
|
EventingFunctionSettings.Builder |
handlerHeaders(List<String> handlerHeaders)
Code to automatically prepend to top of handler code.
|
EventingFunctionSettings.Builder |
languageCompatibility(EventingFunctionLanguageCompatibility languageCompatibility)
Eventing language version this handler assumes in terms of syntax and behavior.
|
EventingFunctionSettings.Builder |
lcbInstCapacity(long lcbInstCapacity)
Maximum number of libcouchbase connections that may be opened and pooled.
|
EventingFunctionSettings.Builder |
lcbRetryCount(long lcbRetryCount)
Number of retries of retriable libcouchbase failures.
|
EventingFunctionSettings.Builder |
lcbTimeout(Duration lcbTimeout)
Maximum time the lcb command is waited until completion before we terminate the request.
|
EventingFunctionSettings.Builder |
logLevel(EventingFunctionLogLevel logLevel)
Level of detail in system logging.
|
EventingFunctionSettings.Builder |
numTimerPartitions(long numTimerPartitions)
Number of timer shards.
|
EventingFunctionSettings.Builder |
queryConsistency(QueryScanConsistency queryConsistency)
Consistency level used by n1ql statements in the handler.
|
EventingFunctionSettings.Builder |
queryPrepareAll(boolean queryPrepareAll)
Automatically prepare all n1ql statements in the handler.
|
EventingFunctionSettings.Builder |
sockBatchSize(long sockBatchSize)
Batch size for messages from producer to consumer.
|
EventingFunctionSettings.Builder |
tickDuration(Duration tickDuration)
Duration to log stats from this handler.
|
EventingFunctionSettings.Builder |
timerContextSize(long timerContextSize)
Size limit of timer context object.
|
EventingFunctionSettings.Builder |
userPrefix(String userPrefix)
Key prefix for all data stored in metadata by this handler.
|
EventingFunctionSettings.Builder |
workerCount(long workerCount)
Number of worker processes handler utilizes on each eventing node.
|
public EventingFunctionSettings.Builder checkpointInterval(Duration checkpointInterval)
checkpointInterval
- number of seconds before writing a progress checkpoint.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder appLogMaxFiles(long appLogMaxFiles)
appLogMaxFiles
- number of log() message files to retain when rotating.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder appLogMaxSize(long appLogMaxSize)
appLogMaxSize
- rotate logs when file grows to this size in bytes approximately.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder appLogDir(String appLogDir)
appLogDir
- directory to write content of log() message files.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder enableAppLogRotation(boolean enableAppLogRotation)
enableAppLogRotation
- enable rotating this handlers log() message files.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder handlerFooters(List<String> handlerFooters)
handlerFooters
- code to automatically append to bottom of handler code.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder handlerHeaders(List<String> handlerHeaders)
handlerHeaders
- code to automatically prepend to top of handler code.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder queryPrepareAll(boolean queryPrepareAll)
queryPrepareAll
- automatically prepare all n1ql statements in the handler.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder workerCount(long workerCount)
workerCount
- number of worker processes handler utilizes on each eventing node.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder cppWorkerThreadCount(long cppWorkerThreadCount)
cppWorkerThreadCount
- number of threads each worker utilizes.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder dcpStreamBoundary(EventingFunctionDcpBoundary dcpStreamBoundary)
dcpStreamBoundary
- indicates where to start dcp stream from (beginning of time, present point).EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder description(String description)
description
- free form text for user to describe the handler. no functional role.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder logLevel(EventingFunctionLogLevel logLevel)
logLevel
- level of detail in system logging.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder languageCompatibility(EventingFunctionLanguageCompatibility languageCompatibility)
languageCompatibility
- eventing language version this handler assumes in terms of syntax and behavior.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder executionTimeout(Duration executionTimeout)
executionTimeout
- maximum time the handler can run before it is forcefully terminated.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder lcbInstCapacity(long lcbInstCapacity)
lcbInstCapacity
- maximum number of libcouchbase connections that may be opened and pooled.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder lcbRetryCount(long lcbRetryCount)
lcbRetryCount
- number of retries of retriable libcouchbase failures. 0 keeps trying till execution_timeout.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder lcbTimeout(Duration lcbTimeout)
lcbTimeout
- maximum time the lcb command is waited until completion before we terminate the request.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder queryConsistency(QueryScanConsistency queryConsistency)
queryConsistency
- consistency level used by n1ql statements in the handler.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder numTimerPartitions(long numTimerPartitions)
numTimerPartitions
- number of timer shards. defaults to number of vbuckets.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder sockBatchSize(long sockBatchSize)
sockBatchSize
- batch size for messages from producer to consumer. normally, this must not be specified.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder tickDuration(Duration tickDuration)
tickDuration
- duration to log stats from this handler.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder timerContextSize(long timerContextSize)
timerContextSize
- size limit of timer context object.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder userPrefix(String userPrefix)
userPrefix
- key prefix for all data stored in metadata by this handler.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder bucketCacheSize(long bucketCacheSize)
bucketCacheSize
- maximum size in bytes the bucket cache can grow to.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder bucketCacheAge(long bucketCacheAge)
bucketCacheAge
- time in milliseconds after which a cached bucket object is considered stale.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings.Builder curlMaxAllowedRespSize(long curlMaxAllowedRespSize)
Setting the value to 0 lifts the upper limit off. This parameter affects v8 engine stability since it defines the maximum amount of heap space acquired by a curl call.
curlMaxAllowedRespSize
- maximum allowable curl call response in 'MegaBytes'.EventingFunctionSettings.Builder
for chaining purposes.public EventingFunctionSettings build()
EventingFunctionSettings
.Copyright © 2024 Couchbase, Inc.. All rights reserved.