@Deprecated public final class CloudEventsMessageMetadata extends Object
Constructor and Description |
---|
CloudEventsMessageMetadata(String eventType,
String eventTypeVersion,
String cloudEventsVersion,
String source,
String eventId,
ZonedDateTime eventTime,
String schemaUrl,
String contentType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
|
String |
getCloudEventsVersion()
Deprecated.
The version of the CloudEvents specification which the event uses.
|
io.vavr.control.Option<String> |
getContentType()
Deprecated.
Describe the data encoding format.
|
String |
getEventId()
Deprecated.
ID of the event.
|
io.vavr.control.Option<ZonedDateTime> |
getEventTime()
Deprecated.
Timestamp of when the event happened.
|
String |
getEventType()
Deprecated.
Type of occurrence which has happened.
|
io.vavr.control.Option<String> |
getEventTypeVersion()
Deprecated.
The version of the eventType.
|
io.vavr.control.Option<String> |
getSchemaUrl()
Deprecated.
A link to the schema that the data attribute adheres to.
|
String |
getSource()
Deprecated.
This describes the event producer.
|
int |
hashCode()
Deprecated.
|
static CloudEventsMessageMetadata |
of(CloudEventsMessageParser.ParsedMetadata parsedMetadata)
Deprecated.
Factory method to create a CloudEventsMessageMetadata based on a parsed Metadata object.
|
String |
toString()
Deprecated.
|
public CloudEventsMessageMetadata(@Nonnull String eventType, @Nullable String eventTypeVersion, @Nonnull String cloudEventsVersion, @Nonnull String source, @Nonnull String eventId, @Nullable ZonedDateTime eventTime, @Nullable String schemaUrl, @Nullable String contentType)
@Nonnull public io.vavr.control.Option<String> getEventTypeVersion()
@Nonnull public io.vavr.control.Option<ZonedDateTime> getEventTime()
@Nonnull public io.vavr.control.Option<String> getSchemaUrl()
@Nonnull public io.vavr.control.Option<String> getContentType()
@Nonnull public static CloudEventsMessageMetadata of(@Nonnull CloudEventsMessageParser.ParsedMetadata parsedMetadata)
parsedMetadata
- The metadata object parsed from the body of the received message.@Nonnull public String getEventType()
@Nonnull public String getCloudEventsVersion()
@Nonnull public String getSource()
The value "http://SAPS4HANAOD" indicates that the message originated from SAP S/4HANA Cloud.
@Nonnull public String getEventId()
Copyright © 2021 SAP SE. All rights reserved.