org.apache.qpid.transport
Class Method

java.lang.Object
  extended by org.apache.qpid.transport.Struct
      extended by 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


Nested Class Summary
static interface Method.CompletionListener
           
 
Field Summary
 
Fields inherited from class org.apache.qpid.transport.Struct
dirty
 
Constructor Summary
Method()
           
 
Method Summary
 void complete()
           
static Method create(int type)
           
<C> void
delegate(C context, ProtocolDelegate<C> delegate)
           
abstract
<C> void
dispatch(C context, MethodDelegate<C> delegate)
           
 ByteBuffer getBody()
           
 int getBodySize()
           
 int getChannel()
           
abstract  byte getEncodedTrack()
           
 Header getHeader()
           
 int getId()
           
 boolean hasCompletionListener()
           
abstract  boolean hasPayload()
           
(package private)  boolean idSet()
           
 boolean isBatch()
           
 boolean isSync()
           
 boolean isUnreliable()
           
(package private)  void setBatch(boolean value)
           
 void setBody(ByteBuffer body)
           
 void setChannel(int channel)
           
 void setCompletionListener(Method.CompletionListener completionListener)
           
 void setHeader(Header header)
           
(package private)  void setId(int id)
           
 void setSync(boolean value)
           
(package private)  void setUnreliable(boolean value)
           
 String toString()
           
 
Methods inherited from class org.apache.qpid.transport.Struct
getEncodedType, getFields, getPackWidth, getSizeWidth, getStructType, isDirty, read, setDirty, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Method

public Method()
Method Detail

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