Class EventingFunctionSettings

java.lang.Object
com.couchbase.client.java.manager.eventing.EventingFunctionSettings

public class EventingFunctionSettings extends Object
  • Method Details Link icon

    • create Link icon

      public static EventingFunctionSettings create()
      Creates the EventingFunctionSettings with default properties.
      Returns:
      the build settings.
    • builder Link icon

      public static EventingFunctionSettings.Builder builder()
      Creates the EventingFunctionSettings.Builder which allows to customize the settings.
      Returns:
      the EventingFunctionSettings.Builder.
    • processingStatus Link icon

      public EventingFunctionProcessingStatus processingStatus()
      Indicates if the function is running (i.e., not paused).
    • deploymentStatus Link icon

      public EventingFunctionDeploymentStatus deploymentStatus()
      Indicates if the function is deployed.
    • cppWorkerThreadCount Link icon

      public long cppWorkerThreadCount()
      Number of threads each worker utilizes.
    • dcpStreamBoundary Link icon

      public EventingFunctionDcpBoundary dcpStreamBoundary()
      Indicates where to start dcp stream from.
    • description Link icon

      public String description()
      Free form text for user to describe the handler. no functional role.
    • logLevel Link icon

      public EventingFunctionLogLevel logLevel()
      Level of detail in system logging.
    • languageCompatibility Link icon

      public EventingFunctionLanguageCompatibility languageCompatibility()
      Eventing language version this handler assumes in terms of syntax and behavior.
    • executionTimeout Link icon

      public Duration executionTimeout()
      Maximum time the handler can run before it is forcefully terminated.
    • lcbInstCapacity Link icon

      public long lcbInstCapacity()
      Maximum number of libcouchbase connections that may be opened and pooled.
    • lcbRetryCount Link icon

      public long lcbRetryCount()
      Number of retries of retryable libcouchbase failures.
    • lcbTimeout Link icon

      public Duration lcbTimeout()
      Maximum time the lcb command is waited until completion before we terminate the request.
    • queryConsistency Link icon

      public QueryScanConsistency queryConsistency()
      Consistency level used by n1ql statements in the handler.
    • numTimerPartitions Link icon

      public long numTimerPartitions()
      Number of timer shards. defaults to number of vbuckets.
    • sockBatchSize Link icon

      public long sockBatchSize()
      Batch size for messages from producer to consumer.
    • tickDuration Link icon

      public Duration tickDuration()
      Duration to log stats from this handler.
    • timerContextSize Link icon

      public long timerContextSize()
      Size limit of timer context object.
    • userPrefix Link icon

      public String userPrefix()
      Key prefix for all data stored in metadata by this handler.
    • bucketCacheSize Link icon

      public long bucketCacheSize()
      Maximum size in bytes the bucket cache can grow to.
    • bucketCacheAge Link icon

      public long bucketCacheAge()
      Time in milliseconds after which a cached bucket object is considered stale.
    • curlMaxAllowedRespSize Link icon

      public long curlMaxAllowedRespSize()
      Maximum allowable curl call response in 'MegaBytes'.
    • workerCount Link icon

      public long workerCount()
      Number of worker processes handler utilizes on each eventing node.
    • queryPrepareAll Link icon

      public boolean queryPrepareAll()
      Automatically prepare all n1ql statements in the handler.
    • handlerHeaders Link icon

      public List<String> handlerHeaders()
      Code to automatically prepend to top of handler code.
    • handlerFooters Link icon

      public List<String> handlerFooters()
      Code to automatically append to bottom of handler code.
    • enableAppLogRotation Link icon

      public boolean enableAppLogRotation()
      Enable rotating this handlers log() message files.
    • appLogDir Link icon

      public String appLogDir()
      Directory to write content of log() message files.
    • appLogMaxSize Link icon

      public long appLogMaxSize()
      Rotate logs when file grows to this size in bytes approximately.
    • appLogMaxFiles Link icon

      public long appLogMaxFiles()
      Number of log() message files to retain when rotating.
    • checkpointInterval Link icon

      public Duration checkpointInterval()
      Number of seconds before writing a progress checkpoint.
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object