Commit Graph

35 Commits

Author SHA1 Message Date
Artur Souza ec29de0479
Dapr docs 1.11.0 (#1026)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2024-04-26 14:22:03 -07:00
Cassie Coyle a3cc1384b5
Add the dapr runtime returned error details to the Java DaprException (#998)
* properly add the dapr runtime returned error details to the Java DaprException

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* add error handling to sdk docs

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* add tests for the dapr exception changes

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* try verifyNoMoreInteractions w/ channel

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* verify channel close -> channel close explicitly

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* rm verifyNoMoreInteractions

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* rm test to see if that is the orphaned managed channel issue

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* re-add test since that doesnt seem to be the issue

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* channel.close(); -> verify(channel).close();

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* Rewrite and redesign of the DaprErrorDetail in DaprException.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Update daprdocs too for DaprErrorDetails.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix README.md mm string.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix exception example.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Use runtime 1.13.0-rc.2

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix exception example to match gRPC output.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Update error message in IT as per new Dapr runtime version.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Dapr 1.13 is less tolerant of app downtime to keep timers.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Artur Souza <asouza.pro@gmail.com>
2024-02-13 13:34:50 -08:00
Elena Kolevska a9a09ba2ac
Adds docs for client initialisation with env variables (#992)
* Adds docs for client init with env variables

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Fix

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Adds DAPR_HTTP_ENDPOINT

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Update daprdocs/content/en/java-sdk-docs/java-client/_index.md

Co-authored-by: Cassie Coyle <cassie.i.coyle@gmail.com>
Signed-off-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>

---------

Signed-off-by: Elena Kolevska <elena@kolevska.com>
Signed-off-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>
Co-authored-by: Cassie Coyle <cassie.i.coyle@gmail.com>
2024-01-24 08:02:36 -08:00
Cassie Coyle 657fc37a43
add wait for sidecar docs & update java-sdk docs to match .net more w/ client separation (#981)
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2024-01-08 12:12:42 -08:00
Artur Souza 6759f19f83
Fix doc references to preview for configuration API. (#896)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2023-12-21 22:00:21 -08:00
Artur Souza 0d0d59946f
Generate updated javadocs for 1.10.0 (#937)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2023-10-11 16:55:35 -07:00
Hannah Hunter cf9ed3f792
[docs] fix another link (#936) 2023-10-06 12:09:39 -07:00
Hannah Hunter 80ed515206
fix link (#935)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
2023-10-05 16:47:42 -07:00
Hannah Hunter 96c0418521
add distributed lock example (#930)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
2023-09-25 10:25:24 -07:00
Hannah Hunter b442ba46ad
[docs] Workflow how-to and client example (#890)
* scaffold out docs for java sdk

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

* reformat toc

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

* pre-test filling in doc

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

* update java how to

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

* add workflow to client doc

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

* small edits

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

* tweaks

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

* update java sdk how to and client example

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

---------

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com>
2023-09-20 16:16:01 -07:00
Cassie Coyle 0543011d59
Updated enable dead letter topic (#913)
* feat: Add dead letter topic to a subscription topic.

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>

* feat: Add endpoint examples

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>

* feat: Add dead letter topic example to the docs.

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>

* Create new methods with deadLetterTopic instead of overload existing ones.

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>

* Update _index.md

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Create overloads for deadlettertopic.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* fix integration tests from names overlapping

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

---------

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Co-authored-by: Charlie Mk <carlosrb00@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Artur Souza <asouza.pro@gmail.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2023-09-14 17:28:29 -07:00
tomsft 85ffe8ed03
small typo fix (#903)
Signed-off-by: tomsft <138026577+tomsft@users.noreply.github.com>
2023-09-11 11:10:16 -07:00
Aaron Crawfis 9dc842faba
Add cascading metadata (#888)
Signed-off-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2023-07-26 10:26:44 -07:00
Artur Souza 75892fb95f
Generate updated javadocs for 1.9.0 (#878)
* Generate updated javadocs for 1.9.0

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Update _index.md

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2023-06-12 09:57:46 -07:00
Artur Souza 242d93a1ac
Generate updated javadocs for 1.8.0 (#836)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2023-02-16 09:53:19 -08:00
Mukundan Sundararajan 81591b9f5b
initial bulk publish impl for java (#789)
* initial bulk publish impl for java

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add UTs and clean up java doc for new interface methods.

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add more interface methods for bulk publish

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* adding examples and ITs for bulk publish

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* addressing review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* use latest ref from dapr branch

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add example validation

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix bindings example validation

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* make changes for latest bulk publish dapr changes

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix examples

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix examples

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix typo

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* test against java 11 only

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change to latest dapr commit

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* run only pubsub IT, upload failsafe reports as run artifact

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix checkstyle

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix IT report upload condition

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix compile issues

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix spotbugs issue

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* run pubsubIT only

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change upload artifact name for IT

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix tests

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* introduce sleep

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* test bulk publish with redis

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change longvalues test to kafka

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change bulk pub to kafka and revert long values changes

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* remove kafka pubsub from pubsub IT

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change match order in examples

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* set fail fast as false

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix Internal Invoke exception in ITs

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix IT

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix app scopes in examples

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add content to daprdocs

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix mm.py step comment

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* reset bindings examples readme

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix example, IT and make classes immutable

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Artur Souza <asouza.pro@gmail.com>
2023-01-19 12:57:06 -08:00
Shubham Sharma eb8565cca0
feat(pubsub): add bulk subscribe support (#791) 2023-01-18 17:58:03 -08:00
Sarthak Sharma 7593b0e078
Update docs for configuration api (#813)
* fix docs for configuration api

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* Update daprdocs/content/en/java-sdk-docs/_index.md

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-11-25 15:08:28 +05:30
Artur Souza 622844b30a
Generate updated javadocs for 1.7.1 (#809)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-11-14 21:25:53 -08:00
Artur Souza 186298daf0
Generate updated javadocs for 1.7.0 (#798)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-11-06 21:17:15 -08:00
Hannah Hunter 44f80c956d
[Docs] Add input bindings section (#776)
* add input bindings to java doc

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

* add missing code

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
2022-09-14 11:23:53 -07:00
Mr.Black 866b166e11
fix the okhttp3 version bug (#762)
Signed-off-by: RcXu <honeyxhl@163.com>
2022-07-18 03:36:49 -07:00
Artur Souza cff90c0015
Generate updated javadocs for 1.6.0 (#758)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2022-07-12 09:04:55 -07:00
Phil Kedy 2235e3d978
Adding pubsub routing support (#631)
* Adding pubsub routing support

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* remove deprecated classes (#704)

* remove deprecated classes

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* remove builder class ref in ITs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* fix setter in IT

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Address PR comments.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-06-23 11:40:10 -07:00
Hannah Hunter ea19b26d5d
typo fix (#742)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
2022-05-26 13:14:26 -07:00
Artur Souza 1f2e038439
Generate updated javadocs for 1.5.0 (#730)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-04-08 00:57:41 -07:00
Mukundan Sundararajan 06d92dafca
Query State Preview API implementation. (#697)
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-03-20 21:03:11 -07:00
Artur Souza 3e5fe39933
Generate updated javadocs for 1.4.0 (#677) 2022-01-25 09:26:56 -08:00
Pravin Pushkar db33b48fd4
Java SDK - Documentation for configuration API methods (#676)
* Java SDK - Documentation for configuration API methods

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* review comment fixes

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-24 03:30:50 -08:00
Artur Souza b7c3bea202
Generate updated javadocs for 1.3.1 (#643) 2021-10-18 14:00:44 -07:00
Artur Souza addf6029c0
Generate updated javadocs for 1.3.0 (#633) 2021-09-17 15:54:13 -07:00
Robert LU 9c85a0f78e
Update pom.xml example (#611)
* Update version of sdk
* Use xml format comment

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-30 17:01:09 -07:00
Maarten Mulders 93dbbbb3ab
Advise how to resolve OkHttp version conflict with Spring Boot (#589)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-24 15:12:17 -07:00
Maarten Mulders ae5c2a1314
Declare CloudEvent generic to allow automatic payload deserialization using Jackson (#591)
* Declare CloudEvent generic

* Fix timestamp in logging

* Declare Spring Boot version once

* Simplify administration of received events

* Update docs

* Always return a list, even if it's empty

Rather than returning `null` when no
messages are present for a topic.
2021-08-13 13:52:37 -07:00
greenie-msft d3df194bad
Add dapr docs (#581)
* Add Dapr Docs

* Added Java code examples for all building blocks

* Fixed version numbers and comments

* Fixed version numbers

* Update java-contributing.md

* PR review updates.

- Reduce Dapr version to 1.1.0
- Correct code syntax
- Describe Virtual Actors Pattern

* Change version back to 1.1.0

* Add Dapr Docs

* Added Java code examples for all building blocks

* Fixed version numbers and comments

* Fixed version numbers

* Update java-contributing.md

* PR review updates.

- Reduce Dapr version to 1.1.0
- Correct code syntax
- Describe Virtual Actors Pattern

* Change version back to 1.1.0

* Reference shortcode for java sdk version

* Update docs version script

* Rever version of SDK to 1.1.0

Co-authored-by: Paul Yuknewicz <paulyuk@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-26 13:23:04 -07:00