Interface CloudEventExtensions

All Known Subinterfaces:
CloudEvent, CloudEventContext

@ParametersAreNonnullByDefault public interface CloudEventExtensions
The event extensions.

Extensions values could be String/Number/Boolean

  • Method Details

    • getExtension

      @Nullable Object getExtension(String extensionName)
      Get the extension attribute named extensionName
      Parameters:
      extensionName - the extension name
      Returns:
      the extension value in one of the valid types String/Number/Boolean or null if this instance doesn't contain such extension
    • getExtensionNames

      Set<String> getExtensionNames()
      Returns:
      The non-null extension attributes names in this instance