T - the expected type of the service response tokenpublic class InboundToken<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isComplete
Flag indicating that all bytes needed to deserialize a token have been received.
|
private Integer |
length
The length of the byte stream expected from the service response.
|
private T |
value
The received service method response value.
|
| Constructor and Description |
|---|
InboundToken()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getValue() |
boolean |
isComplete() |
void |
reset()
Initialize this object to receive bytes from a stream to be deserialized.
|
void |
update(io.netty.buffer.ByteBuf byteBuf,
Deserializer<T> deserializer)
Update the state of the received bytes to be deserialized.
|
private boolean isComplete
private Integer length
private T value
public void reset()
public void update(io.netty.buffer.ByteBuf byteBuf,
Deserializer<T> deserializer)
throws IOException
byteBuf - the intermediate buffer used to cache bytes received from the servicedeserializer - the deserializer to be used to construct the service response objectIOException - on serialization failurespublic boolean isComplete()
public T getValue()
Copyright © 2022 Apache NiFi Project. All rights reserved.