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: includes/functions-bindings-event-hubs-trigger.md
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -286,7 +286,64 @@ public void eventHubProcessor(
286
286
287
287
In the [Java functions runtime library](/java/api/overview/azure/functions/runtime), use the `EventHubTrigger` annotation on parameters whose value comes from the event hub. Parameters with these annotations cause the function to run when an event arrives. This annotation can be used with native Java types, POJOs, or nullable values using `Optional<T>`.
288
288
289
+
290
+
The following example illustrates extensive use of `SystemProperties` and other Binding options for further introspection of the Event along with providing a well-formed `BlobOutput` path that is Date hierarchical.
291
+
292
+
```java
293
+
packagecom.example;
294
+
importjava.util.Map;
295
+
importjava.time.ZonedDateTime;
296
+
297
+
importcom.microsoft.azure.functions.annotation.*;
298
+
importcom.microsoft.azure.functions.*;
299
+
300
+
/**
301
+
* Azure Functions with Event Hub trigger.
302
+
* and Blob Output using date in path along with message partition ID
303
+
* and message sequence number from EventHub Trigger Properties
0 commit comments