Skip to content

Commit d8a233e

Browse files
Merge pull request #271830 from williamzhao87/patch-1
Update estimated-wait-time.md
2 parents a53d668 + 7b7cc53 commit d8a233e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/communication-services/how-tos/router-sdk/estimated-wait-time.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ print("Queue statistics: " + queue_statistics)
5757
::: zone pivot="programming-language-java"
5858

5959
```java
60-
var queueStatistics = client.getQueueStatistics("queue1");
61-
System.out.println("Queue statistics: " + new GsonBuilder().toJson(queueStatistics));
60+
RouterQueueStatistics queueStatistics = client.getQueueStatisticsWithResponse("queue1").getValue();
61+
System.out.println("Queue statistics: " + BinaryData.fromObject(queueStatistics).toString());
6262
```
6363

6464
::: zone-end

0 commit comments

Comments
 (0)