Class DefaultOutgoingCloudEventMetadata<T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.ce.impl.BaseCloudEventMetadata<T>
-
- io.smallrye.reactive.messaging.ce.impl.DefaultOutgoingCloudEventMetadata<T>
-
- Type Parameters:
T
- the type of data
- All Implemented Interfaces:
CloudEventMetadata<T>
,OutgoingCloudEventMetadata<T>
public class DefaultOutgoingCloudEventMetadata<T> extends BaseCloudEventMetadata<T> implements OutgoingCloudEventMetadata<T>
Default implementation of theOutgoingCloudEventMetadata
interface.
-
-
Field Summary
-
Fields inherited from class io.smallrye.reactive.messaging.ce.impl.BaseCloudEventMetadata
data, dataContentType, dataSchema, extensions, id, source, specVersion, subject, timestamp, type
-
Fields inherited from interface io.smallrye.reactive.messaging.ce.CloudEventMetadata
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 Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getData()
The event payload.-
Methods inherited from class io.smallrye.reactive.messaging.ce.impl.BaseCloudEventMetadata
getDataContentType, getDataSchema, getExtension, getExtensions, getId, getSource, getSpecVersion, getSubject, getTimeStamp, getType, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.reactive.messaging.ce.CloudEventMetadata
getDataContentType, getDataSchema, getExtension, getExtensions, getId, getSource, getSpecVersion, getSubject, getTimeStamp, getType
-
-
-
-
Constructor Detail
-
DefaultOutgoingCloudEventMetadata
public DefaultOutgoingCloudEventMetadata(String specVersion, String id, URI source, String type, String dataContentType, URI dataSchema, String subject, ZonedDateTime timestamp, Map<String,Object> extensions)
-
DefaultOutgoingCloudEventMetadata
public DefaultOutgoingCloudEventMetadata(CloudEventMetadata<T> existing)
-
-
Method Detail
-
getData
public T getData()
Description copied from interface:CloudEventMetadata
The event payload. It is the owner message payload.- Specified by:
getData
in interfaceCloudEventMetadata<T>
- Overrides:
getData
in classBaseCloudEventMetadata<T>
- Returns:
- the payload, can be
null
-
-