T - The type of protocol message.public class JaxbProtocolContext<T> extends Object implements ProtocolContext
| Modifier and Type | Field and Description |
|---|---|
private static int |
BUF_SIZE |
private JAXBContext |
jaxbCtx |
private static byte |
MESSAGE_PROTOCOL_START_SENTINEL |
| Constructor and Description |
|---|
JaxbProtocolContext(JAXBContext jaxbCtx) |
| Modifier and Type | Method and Description |
|---|---|
ProtocolMessageMarshaller<T> |
createMarshaller()
Creates a marshaller for serializing protocol messages.
|
ProtocolMessageUnmarshaller<T> |
createUnmarshaller()
Creates an unmarshaller for deserializing protocol messages.
|
private static final int BUF_SIZE
private static final byte MESSAGE_PROTOCOL_START_SENTINEL
private final JAXBContext jaxbCtx
public JaxbProtocolContext(JAXBContext jaxbCtx)
public ProtocolMessageMarshaller<T> createMarshaller()
ProtocolContextcreateMarshaller in interface ProtocolContextpublic ProtocolMessageUnmarshaller<T> createUnmarshaller()
ProtocolContextcreateUnmarshaller in interface ProtocolContextCopyright © 2016 Apache NiFi Project. All rights reserved.