Class DaprConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
The name of the Dapr binding to invoke.The operation to perform on the binding.io.dapr.client.domain.StateOptions.Concurrency
Concurrency mode to use with state operations.List of keys for configuration operation.The name of the Dapr configuration store to interact with.io.dapr.client.domain.StateOptions.Consistency
Consistency level to use with state operations.The content type for the Pub/Sub component to use.getETag()
ETag used for optimistic concurrency during state save or delete operations.io.dapr.client.domain.HttpExtension
The HttpExtension to use for service invocation.getKey()
The key used to identify the state/secret object within the specified state/secret store.The method or route to invoke on the target service.The Dapr building block operation to perform with this componentio.dapr.client.DaprPreviewClient
The preview client to consume messages by the consumer.The name of the Dapr Pub/Sub component to use.The name of the Dapr secret store to interact with.The target service to invoke.The state operation to perform on the state store. enums: save, saveBulk, get, getBulk, delete, executeTransactionThe name of the Dapr state store to interact with.getTopic()
The name of the topic to subscribe to.getVerb()
The HTTP verb to use for service invocation.void
setBindingName
(String bindingName) void
setBindingOperation
(String bindingOperation) void
setConcurrency
(io.dapr.client.domain.StateOptions.Concurrency concurrency) void
setConfigKeys
(List<String> configKeys) void
setConfigStore
(String configStore) void
setConsistency
(io.dapr.client.domain.StateOptions.Consistency consistency) void
setContentType
(String contentType) void
void
setHttpExtension
(io.dapr.client.domain.HttpExtension httpExtension) void
void
setMethodToInvoke
(String methodToInvoke) void
setOperation
(DaprOperation operation) void
setPreviewClient
(io.dapr.client.DaprPreviewClient previewClient) void
setPubSubName
(String pubSubName) void
setSecretStore
(String secretStore) void
setServiceToInvoke
(String serviceToInvoke) void
setStateOperation
(StateOperation stateOperation) void
setStateStore
(String stateStore) void
void
-
Constructor Details
-
DaprConfiguration
public DaprConfiguration()
-
-
Method Details
-
getOperation
The Dapr building block operation to perform with this component -
setOperation
-
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
-
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
-
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
-
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
The state operation to perform on the state store. enums: save, saveBulk, get, getBulk, delete, executeTransaction -
setStateOperation
-
getStateStore
The name of the Dapr state store to interact with.Required for all state management operations.
-
setStateStore
-
getSecretStore
The name of the Dapr secret store to interact with.Required for all secret management operations.
-
setSecretStore
-
getConfigStore
The name of the Dapr configuration store to interact with.Required for all configuration management operations.
-
setConfigStore
-
getKey
The key used to identify the state/secret object within the specified state/secret store.Required for all state management operations.
-
setKey
-
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
-
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
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
-
getTopic
The name of the topic to subscribe to.The topic must exist in the Pub/Sub component configured under the given pubsubName.
-
setTopic
-
getContentType
The content type for the Pub/Sub component to use. -
setContentType
-
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
The name of the Dapr binding to invoke. -
setBindingName
-
getBindingOperation
The operation to perform on the binding. -
setBindingOperation
-
getConfigKeys
List of keys for configuration operation. -
setConfigKeys
-
copy
-