@ParametersAreNonnullByDefault public interface CloudEventReader
The read may consume this object, hence it's not safe to invoke it multiple times, unless it's explicitly allowed by the implementer.
| Modifier and Type | Method and Description |
|---|---|
default <W extends CloudEventWriter<R>,R> |
read(CloudEventWriterFactory<W,R> writerFactory)
Like
read(CloudEventWriterFactory, CloudEventDataMapper), but with the identity CloudEventDataMapper. |
<W extends CloudEventWriter<R>,R> |
read(CloudEventWriterFactory<W,R> writerFactory,
CloudEventDataMapper<? extends CloudEventData> mapper)
Read self using the provided writer factory.
|
default <W extends CloudEventWriter<R>,R> R read(CloudEventWriterFactory<W,R> writerFactory) throws CloudEventRWException
read(CloudEventWriterFactory, CloudEventDataMapper), but with the identity CloudEventDataMapper.W - The type of the CloudEventWriter created by writerFactoryR - The return value of the CloudEventWriter created by writerFactorywriterFactory - a factory that generates a visitor starting from the SpecVersion of the eventCloudEventWriter.end() or CloudEventWriter.end(CloudEventData)CloudEventRWException - if something went wrong during the read.read(CloudEventWriterFactory, CloudEventDataMapper)<W extends CloudEventWriter<R>,R> R read(CloudEventWriterFactory<W,R> writerFactory, CloudEventDataMapper<? extends CloudEventData> mapper) throws CloudEventRWException
W - the CloudEventWriter typeR - the return type of the CloudEventWriterwriterFactory - a factory that generates a visitor starting from the SpecVersion of the eventmapper - the mapper to invoke when building the CloudEventDataCloudEventWriter.end() or CloudEventWriter.end(CloudEventData)CloudEventRWException - if something went wrong during the read.Copyright © 2024. All rights reserved.