public class Marshallers extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> EventStep<AttributesImpl,T,byte[],byte[]> |
binary()
Builds a Binary Content Mode marshaller to marshal cloud events as JSON for
Kafka Transport Binding
|
static <T> EventStep<AttributesImpl,T,byte[],byte[]> |
structured()
Builds a Structured Content Mode marshaller to marshal cloud event as JSON for
Kafka Transport Binding
|
public static <T> EventStep<AttributesImpl,T,byte[],byte[]> binary()
T - The 'data' typeCloudEventImpl and marshal as JSONBinaryMarshallerpublic static <T> EventStep<AttributesImpl,T,byte[],byte[]> structured()
T - The 'data' typeCloudEventImpl and marshal as JSONStructuredMarshallerCopyright © 2019. All rights reserved.