public abstract class Method extends Struct implements ProtocolEvent
Modifier and Type | Class and Description |
---|---|
static interface |
Method.CompletionListener |
Constructor and Description |
---|
Method() |
Modifier and Type | Method and Description |
---|---|
void |
complete() |
static Method |
create(int type) |
<C> void |
delegate(C context,
ProtocolDelegate<C> delegate) |
abstract <C> void |
dispatch(C context,
MethodDelegate<C> delegate) |
Collection<QpidByteBuffer> |
getBody() |
int |
getBodySize() |
int |
getChannel() |
abstract byte |
getEncodedTrack() |
Header |
getHeader() |
int |
getId() |
boolean |
hasCompletionListener() |
abstract boolean |
hasPayload() |
boolean |
isBatch() |
boolean |
isSync() |
boolean |
isUnreliable() |
void |
setBody(Collection<QpidByteBuffer> body) |
void |
setChannel(int channel) |
void |
setCompletionListener(Method.CompletionListener completionListener) |
void |
setHeader(Header header) |
void |
setSync(boolean value) |
String |
toString() |
getEncodedType, getFields, getPackWidth, getSizeWidth, getStructType, isDirty, read, setDirty, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isConnectionControl
public static final Method create(int type)
public final int getId()
public final int getChannel()
getChannel
in interface ProtocolEvent
public final void setChannel(int channel)
setChannel
in interface ProtocolEvent
public final boolean isSync()
public final void setSync(boolean value)
public final boolean isBatch()
public final boolean isUnreliable()
public abstract boolean hasPayload()
public Header getHeader()
public void setHeader(Header header)
public Collection<QpidByteBuffer> getBody()
public void setBody(Collection<QpidByteBuffer> body)
public int getBodySize()
public abstract byte getEncodedTrack()
getEncodedTrack
in interface ProtocolEvent
public abstract <C> void dispatch(C context, MethodDelegate<C> delegate)
public <C> void delegate(C context, ProtocolDelegate<C> delegate)
delegate
in interface ProtocolEvent
public void setCompletionListener(Method.CompletionListener completionListener)
public void complete()
public boolean hasCompletionListener()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.