Skip to content

Instantly share code, notes, and snippets.

@duglin
Created May 21, 2020 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duglin/39578372ffc923f52a432238d56d628a to your computer and use it in GitHub Desktop.
Save duglin/39578372ffc923f52a432238d56d628a to your computer and use it in GitHub Desktop.
CE Java SDK
interface CloudEvent {
...
String getSubject();
ZonedDateTime getTime();
Map<String, Object> getExtensions();
Object getExtension(key);
T/Object get(key); // used for spec attrs and extensions
}
interface CloudEventBuilder {
}
interface CloudEventReader {
Map<String, Object> getExtensions();
Map<String, Object> getAttributes(); // Just spec defined attributes
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment