Skip to content

Commit 73e8c38

Browse files
committed
updating Jobs readme
Signed-off-by: salaboy <Salaboy@gmail.com>
1 parent 759c284 commit 73e8c38

File tree

1 file changed

+2
-2
lines changed
  • examples/src/main/java/io/dapr/examples/jobs

1 file changed

+2
-2
lines changed

examples/src/main/java/io/dapr/examples/jobs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export DAPR_API_TOKEN="your-dapr-api-token"
6464

6565
This example uses the Java SDK Dapr client in order to **Schedule and Get** Jobs.
6666
`DemoJobsClient.java` is the example class demonstrating these features.
67-
Kindly check [DaprPreviewClient.java](https://github.com/dapr/java-sdk/blob/master/sdk/src/main/java/io/dapr/client/DaprPreviewClient.java) for a detailed description of the supported APIs.
67+
Kindly check [DaprClient.java](https://github.com/dapr/java-sdk/blob/master/sdk/src/main/java/io/dapr/client/DaprClient.java) for a detailed description of the supported APIs.
6868

6969
```java
7070
public class DemoJobsClient {
@@ -77,7 +77,7 @@ public class DemoJobsClient {
7777
Properties.GRPC_PORT, "51439"
7878
);
7979

80-
try (DaprPreviewClient client = new DaprClientBuilder().withPropertyOverrides(overrides).buildPreviewClient()) {
80+
try (DaprClient client = new DaprClientBuilder().withPropertyOverrides(overrides).build()) {
8181

8282
// Schedule a job.
8383
ScheduleJobRequest scheduleJobRequest = new ScheduleJobRequest("dapr-job-1",

0 commit comments

Comments
 (0)