T
- the type of datapublic class DefaultOutgoingCloudEventMetadata<T> extends BaseCloudEventMetadata<T> implements OutgoingCloudEventMetadata<T>
OutgoingCloudEventMetadata
interface.data, dataContentType, dataSchema, extensions, id, source, specVersion, subject, timestamp, type
CE_ATTRIBUTE_DATA_CONTENT_TYPE, CE_ATTRIBUTE_DATA_SCHEMA, CE_ATTRIBUTE_ID, CE_ATTRIBUTE_SOURCE, CE_ATTRIBUTE_SPEC_VERSION, CE_ATTRIBUTE_SUBJECT, CE_ATTRIBUTE_TIME, CE_ATTRIBUTE_TYPE, CE_VERSION_1_0
Constructor and Description |
---|
DefaultOutgoingCloudEventMetadata(CloudEventMetadata<T> existing) |
DefaultOutgoingCloudEventMetadata(String specVersion,
String id,
URI source,
String type,
String dataContentType,
URI dataSchema,
String subject,
ZonedDateTime timestamp,
Map<String,Object> extensions) |
Modifier and Type | Method and Description |
---|---|
T |
getData()
The event payload.
|
getDataContentType, getDataSchema, getExtension, getExtensions, getId, getSource, getSpecVersion, getSubject, getTimeStamp, getType, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, from
getDataContentType, getDataSchema, getExtension, getExtensions, getId, getSource, getSpecVersion, getSubject, getTimeStamp, getType
public DefaultOutgoingCloudEventMetadata(String specVersion, String id, URI source, String type, String dataContentType, URI dataSchema, String subject, ZonedDateTime timestamp, Map<String,Object> extensions)
public DefaultOutgoingCloudEventMetadata(CloudEventMetadata<T> existing)
public T getData()
CloudEventMetadata
getData
in interface CloudEventMetadata<T>
getData
in class BaseCloudEventMetadata<T>
null
Copyright © 2018–2021 SmallRye. All rights reserved.