@Beta public class EventGridSubscriber extends Object
| Constructor and Description |
|---|
EventGridSubscriber()
Creates EventGridSubscriber with default de-serializer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCustomEventMappingFor(String eventType)
Checks if an event mapping with the given eventType exists.
|
EventGridEvent[] |
deserializeEventGridEvents(String requestContent)
De-serialize the events in the given requested content using default de-serializer.
|
EventGridEvent[] |
deserializeEventGridEvents(String requestContent,
com.microsoft.rest.protocol.SerializerAdapter<com.fasterxml.jackson.databind.ObjectMapper> serializerAdapter)
De-serialize the events in the given requested content using the provided de-serializer.
|
Set<Map.Entry<String,Type>> |
getAllCustomEventMappings() |
Type |
getCustomEventMapping(String eventType)
Get type of the Java model that is mapped to the given eventType.
|
void |
putCustomEventMapping(String eventType,
Type eventDataType)
Add a custom event mapping.
|
boolean |
removeCustomEventMapping(String eventType)
Removes the mapping with the given eventType.
|
@Beta public EventGridSubscriber()
@Beta public void putCustomEventMapping(String eventType, Type eventDataType)
eventType - the event type name.eventDataType - type of the Java model that the event type name mapped to.@Beta public Type getCustomEventMapping(String eventType)
eventType - the event type name.@Beta public Set<Map.Entry<String,Type>> getAllCustomEventMappings()
@Beta public boolean removeCustomEventMapping(String eventType)
eventType - the event type name.@Beta public boolean containsCustomEventMappingFor(String eventType)
eventType - the event type name.@Beta public EventGridEvent[] deserializeEventGridEvents(String requestContent) throws IOException
requestContent - the request content in string format.IOException@Beta public EventGridEvent[] deserializeEventGridEvents(String requestContent, com.microsoft.rest.protocol.SerializerAdapter<com.fasterxml.jackson.databind.ObjectMapper> serializerAdapter) throws IOException
requestContent - the request content as string.serializerAdapter - the de-serializer.IOException /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/