Skip to content

Commit

Permalink
Fix Azure Redis Checkpoint Store Samples Issue (#41511)
Browse files Browse the repository at this point in the history
* Fixed issue#40921

* Standard format

* fix ci issue
  • Loading branch information
faynef authored Oct 1, 2024
1 parent fd60255 commit e083a77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
* .eventHubName("<YOUR_EVENT_HUB_NAME>")
* .credential(credential)
* .consumerGroup("<YOUR_CONSUMER_GROUP_NAME>")
* .processEvent(eventContext -> {
* System.out.println("Partition id = " + eventContext.getPartitionContext().getPartitionId() + " and "
* + "sequence number of event = " + eventContext.getEventData().getSequenceNumber());
* })
* .processError(context -> {
* System.out.println("Error occurred while processing events " + context.getThrowable().getMessage());
* })
* .buildEventProcessorClient();
* </pre>
* <!-- end com.azure.messaging.eventhubs.jedischeckpointstore.instantiation -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ public void instantiation() {
.eventHubName("<YOUR_EVENT_HUB_NAME>")
.credential(credential)
.consumerGroup("<YOUR_CONSUMER_GROUP_NAME>")
.processEvent(eventContext -> {
System.out.println("Partition id = " + eventContext.getPartitionContext().getPartitionId() + " and "
+ "sequence number of event = " + eventContext.getEventData().getSequenceNumber());
})
.processError(context -> {
System.out.println("Error occurred while processing events " + context.getThrowable().getMessage());
})
.buildEventProcessorClient();
// END: com.azure.messaging.eventhubs.jedischeckpointstore.instantiation
}
Expand Down

0 comments on commit e083a77

Please sign in to comment.