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) |
ByteBuffer |
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(ByteBuffer 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, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisConnectionControlpublic static final Method create(int type)
public final int getId()
public final int getChannel()
getChannel in interface ProtocolEventpublic final void setChannel(int channel)
setChannel in interface ProtocolEventpublic 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 ByteBuffer getBody()
public void setBody(ByteBuffer body)
public int getBodySize()
public abstract byte getEncodedTrack()
getEncodedTrack in interface ProtocolEventpublic abstract <C> void dispatch(C context,
MethodDelegate<C> delegate)
public <C> void delegate(C context,
ProtocolDelegate<C> delegate)
delegate in interface ProtocolEventpublic void setCompletionListener(Method.CompletionListener completionListener)
public void complete()
public boolean hasCompletionListener()
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.