org.apache.qpid.transport
Class MessageReject
java.lang.Object
org.apache.qpid.transport.Struct
org.apache.qpid.transport.Method
org.apache.qpid.transport.MessageReject
- All Implemented Interfaces:
- Encodable, ProtocolEvent
public final class MessageReject
- extends Method
Field Summary |
static int |
TYPE
|
Fields inherited from class org.apache.qpid.transport.Struct |
dirty |
Methods inherited from class org.apache.qpid.transport.Method |
complete, create, delegate, getBody, getBodySize, getChannel, getHeader, getId, hasCompletionListener, idSet, isBatch, isSync, isUnreliable, setBatch, setBody, setChannel, setCompletionListener, setHeader, setId, setSync, setUnreliable, toString |
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
MessageReject
public MessageReject()
MessageReject
public MessageReject(RangeSet transfers,
MessageRejectCode code,
String text,
Option... _options)
getStructType
public final int getStructType()
- Specified by:
getStructType
in class Struct
getSizeWidth
public final int getSizeWidth()
- Specified by:
getSizeWidth
in class Struct
getPackWidth
public final int getPackWidth()
- Specified by:
getPackWidth
in class Struct
hasPayload
public final boolean hasPayload()
- Specified by:
hasPayload
in class Method
getEncodedTrack
public final byte getEncodedTrack()
- Specified by:
getEncodedTrack
in interface ProtocolEvent
- Specified by:
getEncodedTrack
in class Method
dispatch
public <C> void dispatch(C context,
MethodDelegate<C> delegate)
- Specified by:
dispatch
in class Method
hasTransfers
public final boolean hasTransfers()
clearTransfers
public final MessageReject clearTransfers()
getTransfers
public final RangeSet getTransfers()
setTransfers
public final MessageReject setTransfers(RangeSet value)
transfers
public final MessageReject transfers(RangeSet value)
hasCode
public final boolean hasCode()
clearCode
public final MessageReject clearCode()
getCode
public final MessageRejectCode getCode()
setCode
public final MessageReject setCode(MessageRejectCode value)
code
public final MessageReject code(MessageRejectCode value)
hasText
public final boolean hasText()
clearText
public final MessageReject clearText()
getText
public final String getText()
setText
public final MessageReject setText(String value)
text
public final MessageReject text(String value)
write
public void write(Encoder enc)
- Description copied from interface:
Encodable
- Encodes this encodable using the given encoder.
- Specified by:
write
in interface Encodable
- Specified by:
write
in class Struct
- Parameters:
enc
- the encoder.
read
public void read(Decoder dec)
- Description copied from interface:
Encodable
- Decodes this encodable using the given decoder.
- Specified by:
read
in interface Encodable
- Specified by:
read
in class Struct
- Parameters:
dec
- the decoder.
getFields
public Map<String,Object> getFields()
- Specified by:
getFields
in class Struct
Licensed to the Apache Software Foundation