public class LongInboundAdapter extends Object implements InboundAdapter
InboundAdapter where the service response payload is expected to be a Long.| Modifier and Type | Field and Description |
|---|---|
private io.netty.buffer.ByteBuf |
byteBuf
Container for bytes queued from the service response
Channel. |
private Long |
result
The received service method response value.
|
| Constructor and Description |
|---|
LongInboundAdapter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dequeue()
Parse the received content into a form suitable for supplying to the remote method caller.
|
Long |
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 io.netty.buffer.ByteBuf byteBuf
Channel.private Long result
public Long 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.