Interface CloudEventsExtension
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CloudEventsExtension
Represents a list of Cloud Events Extension.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Map<String,Object>
marshal(Collection<CloudEventsExtension> extensions)
Helper method to convert a collection ofCloudEventsExtension
to Map.static CloudEventsExtension
of(String key, Object value)
Helper method to create a newCloudEventsExtension
for the given key-value pair.Map<String,Object>
toAttributesExtensions()
Gets the extensions.
-
-
-
Method Detail
-
of
static CloudEventsExtension of(String key, Object value)
Helper method to create a newCloudEventsExtension
for the given key-value pair.- Parameters:
key
- the extension key.value
- the extension value.- Returns:
- a new
CloudEventsExtension
.
-
marshal
static Map<String,Object> marshal(Collection<CloudEventsExtension> extensions)
Helper method to convert a collection ofCloudEventsExtension
to Map.- Parameters:
extensions
- the extensions to convert.- Returns:
- the
Map
.
-
-