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 type,
String datacontenttype,
URI dataschema,
String subject,
ZonedDateTime time,
T data,
byte[] dataBase64)
Used by the Jackson Framework to unmarshall.
|
AttributesImpl |
getAttributes()
The event context attributes
|
Optional<T> |
getData()
The event data
|
byte[] |
getDataBase64() |
Map<String,Object> |
getExtensions()
The event extensions
|
public AttributesImpl getAttributes()
CloudEventgetAttributes in interface CloudEvent<AttributesImpl,T>public Optional<T> getData()
CloudEventgetData in interface CloudEvent<AttributesImpl,T>public byte[] getDataBase64()
getDataBase64 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 type, String datacontenttype, URI dataschema, String subject, ZonedDateTime time, T data, byte[] dataBase64)
Copyright © 2020. All rights reserved.