Class DaprConfiguration

java.lang.Object
org.apache.camel.component.dapr.DaprConfiguration
All Implemented Interfaces:
Cloneable

@UriParams public class DaprConfiguration extends Object implements Cloneable
  • Constructor Details

    • DaprConfiguration

      public DaprConfiguration()
  • Method Details

    • getOperation

      public DaprOperation getOperation()
      The Dapr building block operation to perform with this component
    • setOperation

      public void setOperation(DaprOperation operation)
    • getServiceToInvoke

      public String getServiceToInvoke()
      The target service to invoke.

      This can be one of the following:

      • A Dapr App ID
      • A named HTTPEndpoint resource
      • A fully qualified domain name (FQDN) or public URL
    • setServiceToInvoke

      public void setServiceToInvoke(String serviceToInvoke)
    • getMethodToInvoke

      public String getMethodToInvoke()
      The method or route to invoke on the target service.

      This defines the specific method or endpoint to invoke on the target service, such as a method name or route path.

    • setMethodToInvoke

      public void setMethodToInvoke(String methodToInvoke)
    • getVerb

      public String getVerb()
      The HTTP verb to use for service invocation.

      This defines the type of HTTP request to send when invoking the service method. Defaults to POST.

    • setVerb

      public void setVerb(String verb)
    • getHttpExtension

      public io.dapr.client.domain.HttpExtension getHttpExtension()
      The HttpExtension to use for service invocation.

      Minimal HttpExtension object without query parameters and headers. Takes precedence over defined verb, query parameter and headers.

    • setHttpExtension

      public void setHttpExtension(io.dapr.client.domain.HttpExtension httpExtension)
    • getStateOperation

      public StateOperation getStateOperation()
      The state operation to perform on the state store. enums: save, saveBulk, get, getBulk, delete, executeTransaction
    • setStateOperation

      public void setStateOperation(StateOperation stateOperation)
    • getStateStore

      public String getStateStore()
      The name of the Dapr state store to interact with.

      Required for all state management operations.

    • setStateStore

      public void setStateStore(String stateStore)
    • getSecretStore

      public String getSecretStore()
      The name of the Dapr secret store to interact with.

      Required for all secret management operations.

    • setSecretStore

      public void setSecretStore(String secretStore)
    • getConfigStore

      public String getConfigStore()
      The name of the Dapr configuration store to interact with.

      Required for all configuration management operations.

    • setConfigStore

      public void setConfigStore(String configStore)
    • getKey

      public String getKey()
      The key used to identify the state/secret object within the specified state/secret store.

      Required for all state management operations.

    • setKey

      public void setKey(String key)
    • getETag

      public String getETag()
      ETag used for optimistic concurrency during state save or delete operations.

      Ensures the operation is applied only if the ETag matches the current state version.

    • setETag

      public void setETag(String eTag)
    • getConcurrency

      public io.dapr.client.domain.StateOptions.Concurrency getConcurrency()
      Concurrency mode to use with state operations.

      'FIRST_WRITE' enforces that only the first write succeeds 'LAST_WRITE' allows the latest write to overwrite previous versions

    • setConcurrency

      public void setConcurrency(io.dapr.client.domain.StateOptions.Concurrency concurrency)
    • getConsistency

      public io.dapr.client.domain.StateOptions.Consistency getConsistency()
      Consistency level to use with state operations.

      'EVENTUAL' allows for faster, potentially out-of-order writes 'STRONG' ensures writes are immediately visible and consistent

    • setConsistency

      public void setConsistency(io.dapr.client.domain.StateOptions.Consistency consistency)
    • getPubSubName

      public String getPubSubName()
      The name of the Dapr Pub/Sub component to use.

      This identifies which underlying messaging system Dapr will interact with for publishing or subscribing to events.

    • setPubSubName

      public void setPubSubName(String pubSubName)
    • getTopic

      public String getTopic()
      The name of the topic to subscribe to.

      The topic must exist in the Pub/Sub component configured under the given pubsubName.

    • setTopic

      public void setTopic(String topic)
    • getContentType

      public String getContentType()
      The content type for the Pub/Sub component to use.
    • setContentType

      public void setContentType(String contentType)
    • getPreviewClient

      public io.dapr.client.DaprPreviewClient getPreviewClient()
      The preview client to consume messages by the consumer.
    • setPreviewClient

      public void setPreviewClient(io.dapr.client.DaprPreviewClient previewClient)
    • getBindingName

      public String getBindingName()
      The name of the Dapr binding to invoke.
    • setBindingName

      public void setBindingName(String bindingName)
    • getBindingOperation

      public String getBindingOperation()
      The operation to perform on the binding.
    • setBindingOperation

      public void setBindingOperation(String bindingOperation)
    • getConfigKeys

      public List<String> getConfigKeys()
      List of keys for configuration operation.
    • setConfigKeys

      public void setConfigKeys(List<String> configKeys)
    • copy

      public DaprConfiguration copy()