EventGridSubscriber Class
- java.
lang. Object - com.
microsoft. azure. eventgrid. customization. EventGridSubscriber
- com.
public class EventGridSubscriber
The type that can be used to de-serialize eventgrid events.
Constructor Summary
Constructor | Description |
---|---|
EventGridSubscriber() |
Creates Event |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
containsCustomEventMappingFor(String eventType)
Checks if an event mapping with the given event |
Event |
deserializeEventGridEvents(String requestContent)
De-serialize the events in the given requested content using default de-serializer. |
Event |
deserializeEventGridEvents(String requestContent, SerializerAdapter<ObjectMapper> serializerAdapter)
De-serialize the events in the given requested content using the provided de-serializer. |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.reflect.Type>> | getAllCustomEventMappings() |
java.lang.reflect.Type |
getCustomEventMapping(String eventType)
Get type of the Java model that is mapped to the given event |
void |
putCustomEventMapping(String eventType, Type eventDataType)
Add a custom event mapping. |
boolean |
removeCustomEventMapping(String eventType)
Removes the mapping with the given event |
Methods inherited from java.lang.Object
Constructor Details
EventGridSubscriber
public EventGridSubscriber()
Creates EventGridSubscriber with default de-serializer.
Method Details
containsCustomEventMappingFor
public boolean containsCustomEventMappingFor(String eventType)
Checks if an event mapping with the given eventType exists.
Parameters:
Returns:
deserializeEventGridEvents
public EventGridEvent[] deserializeEventGridEvents(String requestContent)
De-serialize the events in the given requested content using default de-serializer.
Parameters:
Returns:
Throws:
deserializeEventGridEvents
public EventGridEvent[] deserializeEventGridEvents(String requestContent, SerializerAdapter
De-serialize the events in the given requested content using the provided de-serializer.
Parameters:
Returns:
Throws:
getAllCustomEventMappings
public Set
Returns:
getCustomEventMapping
public Type getCustomEventMapping(String eventType)
Get type of the Java model that is mapped to the given eventType.
Parameters:
Returns:
putCustomEventMapping
public void putCustomEventMapping(String eventType, Type eventDataType)
Add a custom event mapping. If a mapping with same eventType exists then the old eventDataType is replaced by the specified eventDataType.
Parameters:
removeCustomEventMapping
public boolean removeCustomEventMapping(String eventType)
Removes the mapping with the given eventType.
Parameters:
Returns:
Applies to
Azure SDK for Java