You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/README.md
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ For a sample project configuration and more elaborated examples, check out the [
6
6
7
7
Available examples:
8
8
9
-
*[`Counter`](src/main/java/dev/restate/sdk/examples/Counter.java): Shows a simple virtual object using state primitives.
10
-
*[`VanillaGrpcCounter`](src/main/java/dev/restate/sdk/examples/VanillaGrpcCounter.java): Same as `Counter` but using the vanilla gRPC code generator output.
9
+
*[`Counter`](src/main/java/my/restate/sdk/examples/Counter.java): Shows a simple virtual object using state primitives.
11
10
*[`CounterKt`](src/main/kotlin/dev/restate/sdk/examples/CounterKt.kt): Same as `Counter` but using Kotlin.
11
+
*[`LoanWorkflow`](src/main/java/my/restate/sdk/examples/LoanWorkflow.java): Shows a simple workflow example using the Workflow API.
12
12
13
13
## Package the examples for Lambda
14
14
@@ -22,11 +22,11 @@ You'll find the shadowed jar in the `build` directory.
22
22
23
23
The class to configure in Lambda is `my.restate.sdk.examples.LambdaHandler`.
24
24
25
-
By default, the [`dev.restate.sdk.examples.Counter`](src/main/java/dev/restate/sdk/examples/Counter.java)bindableComponent is deployed. Set the env variable `LAMBDA_FACTORY_SERVICE_CLASS` to one of the available example classes to change the deployed class.
25
+
By default, the [`my.restate.sdk.examples.Counter`](src/main/java/my/restate/sdk/examples/Counter.java)virtual object is deployed. Set the env variable `LAMBDA_FACTORY_SERVICE_CLASS` to one of the available example classes to change the deployed class.
26
26
27
27
## Running the examples (HTTP)
28
28
29
-
You can run the Java counter bindableComponent via:
29
+
You can run the Java Counter example via:
30
30
31
31
```shell
32
32
./gradlew :examples:run
@@ -40,10 +40,13 @@ You can modify the class to run setting `-PmainClass=<FQCN>`, for example, in or
40
40
41
41
## Invoking the counter bindableComponent
42
42
43
-
If you want to invoke the counter bindableComponent via [grpcurl](https://github.com/fullstorydev/grpcurl):
43
+
If you want to invoke the counter virtual object via curl:
0 commit comments