Class Event
java.lang.Object
io.confluent.telemetry.api.events.Event
This class is a mutable builder for Cloudevent V1 . The default implementation is immutable and
we need to be able to add metadata in the events pipeline.
This class is not threadsafe.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<byte[]> data()id()static booleanisValidExtensionName(String name) Validates the extension name as defined in CloudEvents spec.setExtension(String name, String value) setSubject(String subject) setTime(OffsetDateTime time) source()subject()time()toString()type()
-
Field Details
-
APPLICATION_PROTOBUF
- See Also:
-
APPLICATION_X_PROTOBUF
- See Also:
-
APPLICATION_JSON
- See Also:
-
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
type
-
source
-
subject
-
id
-
time
-
data
-
dataContentType
-
dataSchema
-
extension
-
extensionNames
-
setType
-
setSource
-
setSubject
-
setId
-
setTime
-
setData
-
setData
-
setExtension
-
isValidExtensionName
Validates the extension name as defined in CloudEvents spec.- Parameters:
name- the extension name- Returns:
- true if extension name is valid, false otherwise
- See Also:
-
toString
-