Package io.dapr.config
Class Properties
java.lang.Object
io.dapr.config.Properties
Global properties for Dapr's SDK, using Supplier so they are dynamically resolved.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAPI token for authentication between App and Dapr's side car.GRPC enable keep alive.GRPC endpoint for remote sidecar connectivity.GRPC keep alive time in seconds.GRPC keep alive timeout in seconds.GRPC keep alive without calls.Dapr's default maximum inbound message size for GRPC in bytes.Dapr's default maximum inbound metadata size for GRPC in bytes.Dapr's default maximum inbound message size for GRPC in bytes.Dapr's default maximum inbound metadata size for GRPC in bytes.GRPC port for Dapr after checking system property and environment variable.GRPC TLS CA cert path for Dapr after checking system property and environment variable.GRPC TLS cert path for Dapr after checking system property and environment variable.Use insecure TLS mode which still uses TLS but doesn't verify certificates.GRPC TLS key path for Dapr after checking system property and environment variable.Dapr's default maximum number of idle connections for HTTP connection pool.Dapr's default maximum number of requests for HTTP client to execute concurrently.Dapr's timeout in seconds for HTTP client reads.GRPC endpoint for remote sidecar connectivity.HTTP port for Dapr after checking system property and environment variable.Maximum number of retries for retriable exceptions.IP for Dapr's sidecar.Determines which string encoding is used in Dapr's Java SDK.Timeout for API calls. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance to handle Properties per instance.Properties
(Map<?, String> overridesInput) Creates a new instance to handle Properties per instance. -
Method Summary
-
Field Details
-
SIDECAR_IP
IP for Dapr's sidecar. -
HTTP_PORT
HTTP port for Dapr after checking system property and environment variable. -
GRPC_PORT
GRPC port for Dapr after checking system property and environment variable. -
GRPC_TLS_CERT_PATH
GRPC TLS cert path for Dapr after checking system property and environment variable. -
GRPC_TLS_KEY_PATH
GRPC TLS key path for Dapr after checking system property and environment variable. -
GRPC_TLS_CA_PATH
GRPC TLS CA cert path for Dapr after checking system property and environment variable. This is used for TLS connections to servers with self-signed certificates. -
GRPC_TLS_INSECURE
Use insecure TLS mode which still uses TLS but doesn't verify certificates. This uses InsecureTrustManagerFactory to trust all certificates. This should only be used for testing or in secure environments. -
GRPC_ENDPOINT
GRPC endpoint for remote sidecar connectivity. -
GRPC_ENABLE_KEEP_ALIVE
GRPC enable keep alive. Environment variable: DAPR_GRPC_ENABLE_KEEP_ALIVE System property: dapr.grpc.enable.keep.alive Default: false -
GRPC_KEEP_ALIVE_TIME_SECONDS
GRPC keep alive time in seconds. Environment variable: DAPR_GRPC_KEEP_ALIVE_TIME_SECONDS System property: dapr.grpc.keep.alive.time.seconds Default: 10 seconds -
GRPC_KEEP_ALIVE_TIMEOUT_SECONDS
GRPC keep alive timeout in seconds. Environment variable: DAPR_GRPC_KEEP_ALIVE_TIMEOUT_SECONDS System property: dapr.grpc.keep.alive.timeout.seconds Default: 5 seconds -
GRPC_KEEP_ALIVE_WITHOUT_CALLS
GRPC keep alive without calls. Environment variable: DAPR_GRPC_KEEP_ALIVE_WITHOUT_CALLS System property: dapr.grpc.keep.alive.without.calls Default: true -
HTTP_ENDPOINT
GRPC endpoint for remote sidecar connectivity. -
MAX_RETRIES
Maximum number of retries for retriable exceptions. -
TIMEOUT
Timeout for API calls. -
API_TOKEN
API token for authentication between App and Dapr's side car. -
STRING_CHARSET
Determines which string encoding is used in Dapr's Java SDK. -
HTTP_CLIENT_READ_TIMEOUT_SECONDS
Dapr's timeout in seconds for HTTP client reads. -
HTTP_CLIENT_MAX_REQUESTS
Dapr's default maximum number of requests for HTTP client to execute concurrently. -
HTTP_CLIENT_MAX_IDLE_CONNECTIONS
Dapr's default maximum number of idle connections for HTTP connection pool. -
GRPC_MAX_INBOUND_MESSAGE_SIZE_BYTES
Dapr's default maximum inbound message size for GRPC in bytes. -
GRPC_MAX_INBOUND_METADATA_SIZE_BYTES
Dapr's default maximum inbound metadata size for GRPC in bytes.
-
-
Constructor Details
-
Properties
public Properties()Creates a new instance to handle Properties per instance. -
Properties
Creates a new instance to handle Properties per instance.- Parameters:
overridesInput
- to override static properties
-
-
Method Details
-
getValue
Gets a property value taking in consideration the override values.- Type Parameters:
T
- type of the property that we want to get the value from- Parameters:
property
- to override static property value from overrides- Returns:
- the property's value
-