org.apache.qpid.transport
Class Method
java.lang.Object
org.apache.qpid.transport.Struct
org.apache.qpid.transport.Method
- All Implemented Interfaces:
- Encodable, ProtocolEvent
- Direct Known Subclasses:
- ConnectionClose, ConnectionCloseOk, ConnectionHeartbeat, ConnectionOpen, ConnectionOpenOk, ConnectionRedirect, ConnectionSecure, ConnectionSecureOk, ConnectionStart, ConnectionStartOk, ConnectionTune, ConnectionTuneOk, DtxCommit, DtxEnd, DtxForget, DtxGetTimeout, DtxPrepare, DtxRecover, DtxRollback, DtxSelect, DtxSetTimeout, DtxStart, ExchangeBind, ExchangeBound, ExchangeDeclare, ExchangeDelete, ExchangeQuery, ExchangeUnbind, ExecutionException, ExecutionResult, ExecutionSync, MessageAccept, MessageAcquire, MessageCancel, MessageFlow, MessageFlush, MessageReject, MessageRelease, MessageResume, MessageSetFlowMode, MessageStop, MessageSubscribe, MessageTransfer, QueueDeclare, QueueDelete, QueuePurge, QueueQuery, SessionAttach, SessionAttached, SessionCommandPoint, SessionCompleted, SessionConfirmed, SessionDetach, SessionDetached, SessionExpected, SessionFlush, SessionGap, SessionKnownCompleted, SessionRequestTimeout, SessionTimeout, TxCommit, TxRollback, TxSelect
public abstract class Method
- extends Struct
- implements ProtocolEvent
Method
Fields inherited from class org.apache.qpid.transport.Struct |
dirty |
Method
public Method()
create
public static final Method create(int type)
getId
public final int getId()
setId
void setId(int id)
idSet
boolean idSet()
getChannel
public final int getChannel()
- Specified by:
getChannel
in interface ProtocolEvent
setChannel
public final void setChannel(int channel)
- Specified by:
setChannel
in interface ProtocolEvent
isSync
public final boolean isSync()
setSync
public final void setSync(boolean value)
isBatch
public final boolean isBatch()
setBatch
final void setBatch(boolean value)
isUnreliable
public final boolean isUnreliable()
setUnreliable
final void setUnreliable(boolean value)
hasPayload
public abstract boolean hasPayload()
getHeader
public Header getHeader()
setHeader
public void setHeader(Header header)
getBody
public ByteBuffer getBody()
setBody
public void setBody(ByteBuffer body)
getBodySize
public int getBodySize()
getEncodedTrack
public abstract byte getEncodedTrack()
- Specified by:
getEncodedTrack
in interface ProtocolEvent
dispatch
public abstract <C> void dispatch(C context,
MethodDelegate<C> delegate)
delegate
public <C> void delegate(C context,
ProtocolDelegate<C> delegate)
- Specified by:
delegate
in interface ProtocolEvent
setCompletionListener
public void setCompletionListener(Method.CompletionListener completionListener)
complete
public void complete()
hasCompletionListener
public boolean hasCompletionListener()
toString
public String toString()
- Overrides:
toString
in class Struct
Licensed to the Apache Software Foundation