public class MuxDropChannel extends Object implements MuxControlBlock
Modifier and Type | Class and Description |
---|---|
static class |
MuxDropChannel.Reason
Outlined in Section 9.4.1.
|
Constructor and Description |
---|
MuxDropChannel(long channelId)
Normal Drop.
|
MuxDropChannel(long channelId,
int code,
String phrase)
Drop with reason code and optional phrase
|
MuxDropChannel(long channelId,
MuxDropChannel.Reason code,
String phrase)
Drop with reason code and optional phrase
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
asReasonBuffer() |
long |
getChannelId() |
MuxDropChannel.Reason |
getCode() |
int |
getOpCode() |
String |
getPhrase() |
int |
getRsv() |
static MuxDropChannel |
parse(long channelId,
ByteBuffer payload) |
void |
setRsv(int rsv) |
public MuxDropChannel(long channelId)
channelId
- the logical channel Id to perform drop against.public MuxDropChannel(long channelId, int code, String phrase)
channelId
- the logical channel Id to perform drop against.code
- reason codephrase
- optional human readable phrasepublic MuxDropChannel(long channelId, MuxDropChannel.Reason code, String phrase)
channelId
- the logical channel Id to perform drop against.code
- reason codephrase
- optional human readable phrasepublic static MuxDropChannel parse(long channelId, ByteBuffer payload)
public ByteBuffer asReasonBuffer()
public long getChannelId()
public MuxDropChannel.Reason getCode()
public int getOpCode()
getOpCode
in interface MuxControlBlock
public String getPhrase()
public int getRsv()
public void setRsv(int rsv)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.