public abstract class BaseStructuredMessageReader extends Object implements MessageReader
| Constructor and Description |
|---|
BaseStructuredMessageReader() |
| Modifier and Type | Method and Description |
|---|---|
Encoding |
getEncoding() |
<V extends CloudEventWriter<R>,R> |
read(CloudEventWriterFactory<V,R> writerFactory)
Visit the message as binary encoded event using the provided visitor factory.
|
void |
readAttributes(CloudEventAttributesWriter writer)
Visit the message attributes as binary encoded event using the provided visitor.
|
void |
readExtensions(CloudEventExtensionsWriter visitor)
Visit the message extensions as binary encoded event using the provided visitor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, toEvent, visitfrom, frompublic Encoding getEncoding()
getEncoding in interface MessageReaderpublic <V extends CloudEventWriter<R>,R> R read(CloudEventWriterFactory<V,R> writerFactory)
MessageReaderread in interface MessageReaderread in interface CloudEventReaderwriterFactory - a factory that generates a visitor starting from the SpecVersion of the eventpublic void readAttributes(CloudEventAttributesWriter writer) throws RuntimeException
MessageReaderreadAttributes in interface MessageReaderreadAttributes in interface CloudEventReaderwriter - Attributes visitorRuntimeExceptionpublic void readExtensions(CloudEventExtensionsWriter visitor) throws RuntimeException
MessageReaderreadExtensions in interface MessageReaderreadExtensions in interface CloudEventReadervisitor - Extensions visitorRuntimeExceptionCopyright © 2020. All rights reserved.