@ParametersAreNonnullByDefault
public interface CloudEventExtension
Materialized CloudEvent extension interface to read/write the extension attributes key/values.
-
Method Summary
Modifier and TypeMethodDescriptiongetKeys()Get the set of possible extension attribute keysGet the attribute of extension namedkey.voidreadFrom(CloudEventExtensions extensions) Fill this materialized extension with values from aCloudEventExtensionsimplementation.
-
Method Details
-
readFrom
Fill this materialized extension with values from aCloudEventExtensionsimplementation.- Parameters:
extensions- the extensions where to read from
-
getValue
Get the attribute of extension namedkey.- Parameters:
key- the name of the extension attribute- Returns:
- the extension value in one of the valid types String/Number/Boolean/URI/OffsetDateTime/byte[]
- Throws:
IllegalArgumentException- if the key is unknown to this extension
-
getKeys
Get the set of possible extension attribute keys- Returns:
- set of possible extension attribute keys
-