public class CloudEventImpl<T> extends Object implements CloudEvent<AttributesImpl,T>
| Modifier and Type | Method and Description |
|---|---|
static <T> CloudEventImpl<T> |
build(String id,
URI source,
String specversion,
String type,
ZonedDateTime time,
URI schemaurl,
String contenttype,
T data) |
AttributesImpl |
getAttributes()
The event context attributes
|
Optional<T> |
getData()
The event payload.
|
Map<String,Object> |
getExtensions()
The event extensions
|
public AttributesImpl getAttributes()
CloudEventgetAttributes in interface CloudEvent<AttributesImpl,T>public Optional<T> getData()
getData in interface CloudEvent<AttributesImpl,T>public Map<String,Object> getExtensions()
CloudEventgetExtensions in interface CloudEvent<AttributesImpl,T>public static <T> CloudEventImpl<T> build(String id, URI source, String specversion, String type, ZonedDateTime time, URI schemaurl, String contenttype, T data)
Copyright © 2019. All rights reserved.