diff --git a/README.md b/README.md
index 285e78f5f..bc3c0c93e 100644
--- a/README.md
+++ b/README.md
@@ -52,19 +52,19 @@ For a Maven project, add the following to your `pom.xml` file:
io.daprdapr-sdk
- 1.4.0
+ 1.5.0io.daprdapr-sdk-actors
- 1.4.0
+ 1.5.0io.daprdapr-sdk-springboot
- 1.4.0
+ 1.5.0
...
@@ -78,11 +78,11 @@ For a Gradle project, add the following to your `build.gradle` file:
dependencies {
...
// Dapr's core SDK with all features, except Actors.
- compile('io.dapr:dapr-sdk:1.4.0')
+ compile('io.dapr:dapr-sdk:1.5.0')
// Dapr's SDK for Actors (optional).
- compile('io.dapr:dapr-sdk-actors:1.4.0')
+ compile('io.dapr:dapr-sdk-actors:1.5.0')
// Dapr's SDK integration with SpringBoot (optional).
- compile('io.dapr:dapr-sdk-springboot:1.4.0')
+ compile('io.dapr:dapr-sdk-springboot:1.5.0')
}
```
diff --git a/daprdocs/content/en/java-sdk-docs/_index.md b/daprdocs/content/en/java-sdk-docs/_index.md
index 84035e782..b669912d4 100644
--- a/daprdocs/content/en/java-sdk-docs/_index.md
+++ b/daprdocs/content/en/java-sdk-docs/_index.md
@@ -31,19 +31,19 @@ For a Maven project, add the following to your `pom.xml` file:
io.daprdapr-sdk
- 1.4.0
+ 1.5.0io.daprdapr-sdk-actors
- 1.4.0
+ 1.5.0io.daprdapr-sdk-springboot
- 1.4.0
+ 1.5.0
...
@@ -57,11 +57,11 @@ For a Gradle project, add the following to your `build.gradle` file:
dependencies {
...
// Dapr's core SDK with all features, except Actors.
- compile('io.dapr:dapr-sdk:1.4.0')
+ compile('io.dapr:dapr-sdk:1.5.0')
// Dapr's SDK for Actors (optional).
- compile('io.dapr:dapr-sdk-actors:1.4.0')
+ compile('io.dapr:dapr-sdk-actors:1.5.0')
// Dapr's SDK integration with SpringBoot (optional).
- compile('io.dapr:dapr-sdk-springboot:1.4.0')
+ compile('io.dapr:dapr-sdk-springboot:1.5.0')
}
```
@@ -72,7 +72,7 @@ You can fix this by specifying a compatible OkHttp version in your project to ma
com.squareup.okhttp3okhttp
- 1.4.0
+ 1.5.0
```
diff --git a/daprdocs/content/en/java-sdk-docs/_index.mdbak b/daprdocs/content/en/java-sdk-docs/_index.mdbak
index 33a44c00d..94fd0d32c 100644
--- a/daprdocs/content/en/java-sdk-docs/_index.mdbak
+++ b/daprdocs/content/en/java-sdk-docs/_index.mdbak
@@ -31,19 +31,19 @@ For a Maven project, add the following to your `pom.xml` file:
io.daprdapr-sdk
- 1.4.0
+ 1.5.0io.daprdapr-sdk-actors
- 1.4.0
+ 1.5.0io.daprdapr-sdk-springboot
- 1.4.0
+ 1.5.0
...
@@ -72,7 +72,7 @@ You can fix this by specifying a compatible OkHttp version in your project to ma
com.squareup.okhttp3okhttp
- 1.4.0
+ 1.5.0
```
@@ -239,5 +239,106 @@ public interface DemoActor {
- For a full guide on actors visit [How-To: Use virtual actors in Dapr]({{< ref howto-actors.md >}}).
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/actors) for code samples and instructions to try actors
+### Get & Subscribe to application configurations
+
+> Note this is a preview API and thus will only be accessible via the DaprPreviewClient interface and not the normal DaprClient interface
+
+```java
+import io.dapr.client.DaprClientBuilder;
+import io.dapr.client.DaprPreviewClient;
+import io.dapr.client.domain.ConfigurationItem;
+import io.dapr.client.domain.GetConfigurationRequest;
+import io.dapr.client.domain.SubscribeConfigurationRequest;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+try (DaprPreviewClient client = (new DaprClientBuilder()).buildPreviewClient()) {
+ // Get configuration for a single key
+ Mono item = client.getConfiguration(CONFIG_STORE_NAME, CONFIG_KEY).block();
+
+// Get Configurations for multiple keys
+ Mono> items =
+ client.getConfiguration(CONFIG_STORE_NAME, CONFIG_KEY_1, CONFIG_KEY_2);
+
+ // Susbcribe to Confifuration changes
+ Flux> outFlux = client.subscribeToConfiguration(CONFIG_STORE_NAME, CONFIG_KEY_1, CONFIG_KEY_2);
+ outFlux.subscribe(configItems -> configItems.forEach(...));
+}
+```
+
+- For a full list of configuration operations visit [How-To: Manage configuration from a store]({{< ref howto-manage-configuration.md >}}).
+- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/configuration) for code samples and instructions to try out different configuration operations.
+
+### Query saved state
+
+> Note this is a preview API and thus will only be accessible via the DaprPreviewClient interface and not the normal DaprClient interface
+
+```java
+import io.dapr.client.DaprClient;
+import io.dapr.client.DaprClientBuilder;
+import io.dapr.client.DaprPreviewClient;
+import io.dapr.client.domain.QueryStateItem;
+import io.dapr.client.domain.QueryStateRequest;
+import io.dapr.client.domain.QueryStateResponse;
+import io.dapr.client.domain.query.Query;
+import io.dapr.client.domain.query.Sorting;
+import io.dapr.client.domain.query.filters.EqFilter;
+
+try (DaprClient client = builder.build(); DaprPreviewClient previewClient = builder.buildPreviewClient()) {
+ String searchVal = args.length == 0 ? "searchValue" : args[0];
+
+ // Create JSON data
+ Listing first = new Listing();
+ first.setPropertyType("apartment");
+ first.setId("1000");
+ ...
+ Listing second = new Listing();
+ second.setPropertyType("row-house");
+ second.setId("1002");
+ ...
+ Listing third = new Listing();
+ third.setPropertyType("apartment");
+ third.setId("1003");
+ ...
+ Listing fourth = new Listing();
+ fourth.setPropertyType("apartment");
+ fourth.setId("1001");
+ ...
+ Map meta = new HashMap<>();
+ meta.put("contentType", "application/json");
+
+ // Save state
+ SaveStateRequest request = new SaveStateRequest(STATE_STORE_NAME).setStates(
+ new State<>("1", first, null, meta, null),
+ new State<>("2", second, null, meta, null),
+ new State<>("3", third, null, meta, null),
+ new State<>("4", fourth, null, meta, null)
+ );
+ client.saveBulkState(request).block();
+
+
+ // Create query and query state request
+
+ Query query = new Query()
+ .setFilter(new EqFilter<>("propertyType", "apartment"))
+ .setSort(Arrays.asList(new Sorting("id", Sorting.Order.DESC)));
+ QueryStateRequest request = new QueryStateRequest(STATE_STORE_NAME)
+ .setQuery(query);
+
+ // Use preview client to call query state API
+ QueryStateResponse result = previewClient.queryState(request, MyData.class).block();
+
+ // View Query state response
+ System.out.println("Found " + result.getResults().size() + " items.");
+ for (QueryStateItem item : result.getResults()) {
+ System.out.println("Key: " + item.getKey());
+ System.out.println("Data: " + item.getValue());
+ }
+}
+
+```
+- For a full list of configuration operations visit [How-To: Query state]({{< ref howto-state-query-api.md >}}).
+- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/querystate) for complete code sample.
+
## Related links
- [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples)
diff --git a/docs/allclasses-index.html b/docs/allclasses-index.html
index 2ae0efec9..391d061f8 100644
--- a/docs/allclasses-index.html
+++ b/docs/allclasses-index.html
@@ -2,11 +2,11 @@
-
-All Classes (dapr-sdk-parent 1.4.0 API)
+
+All Classes (dapr-sdk-parent 1.5.0 API)
-
+
@@ -133,884 +133,904 @@ loadScripts(document, 'script');
@Deprecated
-public class GetBulkStateRequestBuilder
-extends Object
-
Deprecated.
-
Builds a request to request states.
- Deprecated in favor of @seeGetBulkStateRequest.
- Deprecated since SDK version 1.3.0, slated for removal in SDK version 1.5.0.
@Deprecated
-public class InvokeMethodRequestBuilder
-extends Object
-
Deprecated.
-
Builds a request to invoke a service.
- Deprecated in favor of @seeInvokeMethodRequest.
- Deprecated since SDK version 1.3.0, slated for removal in SDK version 1.5.0
@Deprecated
-public class PublishEventRequestBuilder
-extends Object
-
Deprecated.
-
Builds a request to publish an event.
- Deprecated in favor of @seePublishEventRequest.
- Deprecated since SDK version 1.3.0, slated for removal in SDK version 1.5.0
Builds a request to delete a state by key.
- Deprecated in favor of @seeDeleteStateRequest.
- Deprecated since SDK version 1.3.0, slated for removal in SDK version 1.5.0.
Builds a request to publish an event.
- Deprecated in favor of @seeInvokeBindingRequest.
- Deprecated since SDK version 1.3.0, slated for removal in SDK version 1.5.0