Class EventingFunctionSettings
java.lang.Object
com.couchbase.client.java.manager.eventing.EventingFunctionSettings
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionDirectory to write content of log() message files.long
Number of log() message files to retain when rotating.long
Rotate logs when file grows to this size in bytes approximately.long
Time in milliseconds after which a cached bucket object is considered stale.long
Maximum size in bytes the bucket cache can grow to.builder()
Creates theEventingFunctionSettings.Builder
which allows to customize the settings.Number of seconds before writing a progress checkpoint.long
Number of threads each worker utilizes.static EventingFunctionSettings
create()
Creates theEventingFunctionSettings
with default properties.long
Maximum allowable curl call response in 'MegaBytes'.Indicates where to start dcp stream from.Indicates if the function is deployed.Free form text for user to describe the handler.boolean
Enable rotating this handlers log() message files.Maximum time the handler can run before it is forcefully terminated.Code to automatically append to bottom of handler code.Code to automatically prepend to top of handler code.Eventing language version this handler assumes in terms of syntax and behavior.long
Maximum number of libcouchbase connections that may be opened and pooled.long
Number of retries of retryable libcouchbase failures.Maximum time the lcb command is waited until completion before we terminate the request.logLevel()
Level of detail in system logging.long
Number of timer shards.Indicates if the function is running (i.e., not paused).Consistency level used by n1ql statements in the handler.boolean
Automatically prepare all n1ql statements in the handler.long
Batch size for messages from producer to consumer.Duration to log stats from this handler.long
Size limit of timer context object.toString()
Key prefix for all data stored in metadata by this handler.long
Number of worker processes handler utilizes on each eventing node.
-
Method Details
-
create
Creates theEventingFunctionSettings
with default properties.- Returns:
- the build settings.
-
builder
Creates theEventingFunctionSettings.Builder
which allows to customize the settings.- Returns:
- the
EventingFunctionSettings.Builder
.
-
processingStatus
Indicates if the function is running (i.e., not paused). -
deploymentStatus
Indicates if the function is deployed. -
cppWorkerThreadCount
public long cppWorkerThreadCount()Number of threads each worker utilizes. -
dcpStreamBoundary
Indicates where to start dcp stream from. -
description
Free form text for user to describe the handler. no functional role. -
logLevel
Level of detail in system logging. -
languageCompatibility
Eventing language version this handler assumes in terms of syntax and behavior. -
executionTimeout
Maximum time the handler can run before it is forcefully terminated. -
lcbInstCapacity
public long lcbInstCapacity()Maximum number of libcouchbase connections that may be opened and pooled. -
lcbRetryCount
public long lcbRetryCount()Number of retries of retryable libcouchbase failures. -
lcbTimeout
Maximum time the lcb command is waited until completion before we terminate the request. -
queryConsistency
Consistency level used by n1ql statements in the handler. -
numTimerPartitions
public long numTimerPartitions()Number of timer shards. defaults to number of vbuckets. -
sockBatchSize
public long sockBatchSize()Batch size for messages from producer to consumer. -
tickDuration
Duration to log stats from this handler. -
timerContextSize
public long timerContextSize()Size limit of timer context object. -
userPrefix
Key prefix for all data stored in metadata by this handler. -
bucketCacheSize
public long bucketCacheSize()Maximum size in bytes the bucket cache can grow to. -
bucketCacheAge
public long bucketCacheAge()Time in milliseconds after which a cached bucket object is considered stale. -
curlMaxAllowedRespSize
public long curlMaxAllowedRespSize()Maximum allowable curl call response in 'MegaBytes'. -
workerCount
public long workerCount()Number of worker processes handler utilizes on each eventing node. -
queryPrepareAll
public boolean queryPrepareAll()Automatically prepare all n1ql statements in the handler. -
handlerHeaders
Code to automatically prepend to top of handler code. -
enableAppLogRotation
public boolean enableAppLogRotation()Enable rotating this handlers log() message files. -
appLogDir
Directory to write content of log() message files. -
appLogMaxSize
public long appLogMaxSize()Rotate logs when file grows to this size in bytes approximately. -
appLogMaxFiles
public long appLogMaxFiles()Number of log() message files to retain when rotating. -
checkpointInterval
Number of seconds before writing a progress checkpoint. -
toString
-