put example in remarks
This commit is contained in:
Родитель
bd7e73cd75
Коммит
cdd043883c
|
@ -1,10 +1,9 @@
|
|||
---
|
||||
uid: com.microsoft.azure.eventhubs._partition_receiver.receive(final int)
|
||||
summary: *content
|
||||
summary: Receives a batch of [EventData](/java/api/com.microsoft.azure.eventhubs._event_data) objects from an Event Hubs partition.
|
||||
remarks: *content
|
||||
---
|
||||
|
||||
Receives a batch of [EventData](/java/api/com.microsoft.azure.eventhubs._event_data) objects from an Event Hubs partition.
|
||||
|
||||
The following sample code uses the synchronous version of the API, but the concepts are the same:
|
||||
|
||||
```java
|
||||
|
@ -28,4 +27,4 @@ while (true)
|
|||
System.out.println(String.format("ReceivedBatch Size: %s", batchSize));
|
||||
receivedEvents = receiver.receiveSync();
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
Загрузка…
Ссылка в новой задаче