T
- the data typepublic interface CloudEventMetadata<T>
Modifier and Type | Field and Description |
---|---|
static String |
CE_ATTRIBUTE_DATA_CONTENT_TYPE |
static String |
CE_ATTRIBUTE_DATA_SCHEMA |
static String |
CE_ATTRIBUTE_ID |
static String |
CE_ATTRIBUTE_SOURCE |
static String |
CE_ATTRIBUTE_SPEC_VERSION |
static String |
CE_ATTRIBUTE_SUBJECT |
static String |
CE_ATTRIBUTE_TIME |
static String |
CE_ATTRIBUTE_TYPE |
static String |
CE_VERSION_1_0 |
Modifier and Type | Method and Description |
---|---|
T |
getData()
The event payload.
|
Optional<String> |
getDataContentType()
Content type of data value.
|
Optional<URI> |
getDataSchema()
Identifies the schema that data adheres to.
|
<A> Optional<A> |
getExtension(String name)
A CloudEvent may include any number of additional context attributes with distinct names, known as "extension
attributes".
|
Map<String,Object> |
getExtensions()
A CloudEvent may include any number of additional context attributes with distinct names, known as "extension
attributes".
|
String |
getId()
Identifies the event.
|
URI |
getSource()
Identifies the context in which an event happened.
|
String |
getSpecVersion()
The version of the CloudEvents specification which the event uses.
|
Optional<String> |
getSubject()
This describes the subject of the event in the context of the event producer (identified by source).
|
Optional<ZonedDateTime> |
getTimeStamp()
Timestamp of when the occurrence happened.
|
String |
getType()
This attribute contains a value describing the type of event related to the originating occurrence.
|
static final String CE_ATTRIBUTE_SPEC_VERSION
static final String CE_ATTRIBUTE_ID
static final String CE_ATTRIBUTE_SOURCE
static final String CE_ATTRIBUTE_TYPE
static final String CE_ATTRIBUTE_DATA_CONTENT_TYPE
static final String CE_ATTRIBUTE_DATA_SCHEMA
static final String CE_ATTRIBUTE_SUBJECT
static final String CE_ATTRIBUTE_TIME
static final String CE_VERSION_1_0
String getId()
null
URI getSource()
null
String getSpecVersion()
String getType()
Optional<String> getDataContentType()
Optional<URI> getDataSchema()
Optional<String> getSubject()
Optional<ZonedDateTime> getTimeStamp()
<A> Optional<A> getExtension(String name)
name
- the name of the attribute, must not be null
Map<String,Object> getExtensions()
T getData()
null
Copyright © 2018–2021 SmallRye. All rights reserved.