public final class MessageFlow extends Method
Method.CompletionListener| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE |
| Constructor and Description |
|---|
MessageFlow() |
MessageFlow(String destination,
MessageCreditUnit unit,
long value,
Option... _options) |
| Modifier and Type | Method and Description |
|---|---|
MessageFlow |
clearDestination() |
MessageFlow |
clearUnit() |
MessageFlow |
clearValue() |
MessageFlow |
destination(String value) |
<C> void |
dispatch(C context,
MethodDelegate<C> delegate) |
String |
getDestination() |
byte |
getEncodedTrack() |
Map<String,Object> |
getFields() |
int |
getPackWidth() |
int |
getSizeWidth() |
int |
getStructType() |
MessageCreditUnit |
getUnit() |
long |
getValue() |
boolean |
hasDestination() |
boolean |
hasPayload() |
boolean |
hasUnit() |
boolean |
hasValue() |
boolean |
isConnectionControl() |
void |
read(Decoder dec)
Decodes this encodable using the given decoder.
|
MessageFlow |
setDestination(String value) |
MessageFlow |
setUnit(MessageCreditUnit value) |
MessageFlow |
setValue(long value) |
MessageFlow |
unit(MessageCreditUnit value) |
MessageFlow |
value(long value) |
void |
write(Encoder enc)
Encodes this encodable using the given encoder.
|
complete, create, delegate, getBody, getBodySize, getChannel, getHeader, getId, hasCompletionListener, isBatch, isSync, isUnreliable, setBody, setChannel, setCompletionListener, setHeader, setSync, toStringgetEncodedType, isDirty, setDirtypublic static final int TYPE
public MessageFlow()
public MessageFlow(String destination, MessageCreditUnit unit, long value, Option... _options)
public final int getStructType()
getStructType in class Structpublic final int getSizeWidth()
getSizeWidth in class Structpublic final int getPackWidth()
getPackWidth in class Structpublic final boolean hasPayload()
hasPayload in class Methodpublic final byte getEncodedTrack()
getEncodedTrack in interface ProtocolEventgetEncodedTrack in class Methodpublic final boolean isConnectionControl()
public <C> void dispatch(C context,
MethodDelegate<C> delegate)
public final boolean hasDestination()
public final MessageFlow clearDestination()
public final String getDestination()
public final MessageFlow setDestination(String value)
public final MessageFlow destination(String value)
public final boolean hasUnit()
public final MessageFlow clearUnit()
public final MessageCreditUnit getUnit()
public final MessageFlow setUnit(MessageCreditUnit value)
public final MessageFlow unit(MessageCreditUnit value)
public final boolean hasValue()
public final MessageFlow clearValue()
public final long getValue()
public final MessageFlow setValue(long value)
public final MessageFlow value(long value)
public void write(Encoder enc)
Encodablepublic void read(Decoder dec)
EncodableCopyright © 2006–2018 The Apache Software Foundation. All rights reserved.