T - the expected type of the service responsepublic class ValueInboundAdapter<T> extends Object implements InboundAdapter
InboundAdapter where the service response payload is expected to be
an object of type T.| Modifier and Type | Field and Description |
|---|---|
private io.netty.buffer.ByteBuf |
byteBuf
Container for bytes queued from the service response
Channel. |
private Deserializer<T> |
deserializer
The deserializer to be used to construct the service response object.
|
private InboundToken<T> |
inboundToken
The state of receipt of an individual service response token.
|
| Constructor and Description |
|---|
ValueInboundAdapter(Deserializer<T> deserializer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dequeue()
Parse the received content into a form suitable for supplying to the remote method caller.
|
T |
getResult() |
boolean |
isComplete()
Check for receipt of all response content expected from server.
|
void |
queue(byte[] bytes)
Add
Channel content to a queue for later processing |
private final Deserializer<T> deserializer
private final io.netty.buffer.ByteBuf byteBuf
Channel.private final InboundToken<T> inboundToken
public ValueInboundAdapter(Deserializer<T> deserializer)
deserializer - the deserializer to be used to construct the service response objectpublic T getResult()
public boolean isComplete()
InboundAdapterisComplete in interface InboundAdapterpublic void queue(byte[] bytes)
InboundAdapterChannel content to a queue for later processingqueue in interface InboundAdapterbytes - the remote content to queuepublic void dequeue()
throws IOException
InboundAdapterdequeue in interface InboundAdapterIOException - on failure parsing the contentCopyright © 2022 Apache NiFi Project. All rights reserved.