public interface CloudEventMessageEventContext extends EventContext
Modifier and Type | Method and Description |
---|---|
static CloudEventMessageEventContext |
create(String event)
Creates a new
CloudEventMessageEventContext |
Map<String,Object> |
getData() |
String |
getDataContentType() |
String |
getDataSchema() |
String |
getId()
The ID identifies the event.
|
String |
getSource()
The source identifies the instance the event originated in.
|
String |
getSpecVersion() |
String |
getSubject() |
Instant |
getTime() |
String |
getType() |
void |
setData(Map<String,Object> data) |
void |
setDataContentType(String dataContentType) |
void |
setDataSchema(String dataSchema) |
void |
setId(String id)
The ID identifies the event.
|
void |
setSource(String source)
The source identifies the instance the event originated in.
|
void |
setSpecVersion(String specVersion) |
void |
setSubject(String subject) |
void |
setTime(Instant time) |
void |
setType(String type) |
as, create, create, get, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getService, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, put, setCompleted
static CloudEventMessageEventContext create(String event)
CloudEventMessageEventContext
event
- the unqualified event name of the modelled eventCloudEventMessageEventContext
String getId()
void setId(String id)
id
- the identifier@CdsName(value="specversion") String getSpecVersion()
@CdsName(value="specversion") void setSpecVersion(String specVersion)
specVersion
- The version of the CloudEvents specification which the event uses.String getSource()
void setSource(String source)
source
- the sourceString getType()
void setType(String type)
type
- the type of the event related to the source the event originated in.String getSubject()
void setSubject(String subject)
subject
- the subject of the event in the context of the source the event originated in (e.g. a certain business object or resource).@CdsName(value="datacontenttype") String getDataContentType()
getData()
@CdsName(value="datacontenttype") void setDataContentType(String dataContentType)
dataContentType
- Content type of the event datagetData()
@CdsName(value="dataschema") String getDataSchema()
getData()
@CdsName(value="dataschema") void setDataSchema(String dataSchema)
dataSchema
- the schema that the event data adheres to.getData()
Instant getTime()
void setTime(Instant time)
time
- Timestamp of when the occurrence happened.Copyright © 2021. All rights reserved.