public abstract class WebSocketFrame extends DefaultByteBufHolder
| 限定符 | 构造器和说明 |
|---|---|
protected |
WebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData) |
protected |
WebSocketFrame(ByteBuf binaryData) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract WebSocketFrame |
copy()
Create a deep copy of this
ByteBufHolder. |
abstract WebSocketFrame |
duplicate()
Duplicate the
ByteBufHolder. |
boolean |
isFinalFragment()
Flag to indicate if this frame is the final fragment in a message.
|
WebSocketFrame |
retain()
Increases the reference count by
1. |
WebSocketFrame |
retain(int increment)
Increases the reference count by the specified
increment. |
int |
rsv()
Bits used for extensions to the standard.
|
java.lang.String |
toString() |
content, contentToString, equals, hashCode, refCnt, release, releaseprotected WebSocketFrame(ByteBuf binaryData)
protected WebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
public boolean isFinalFragment()
public int rsv()
public abstract WebSocketFrame copy()
ByteBufHolderByteBufHolder.copy 在接口中 ByteBufHoldercopy 在类中 DefaultByteBufHolderpublic abstract WebSocketFrame duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate 在接口中 ByteBufHolderduplicate 在类中 DefaultByteBufHolderpublic java.lang.String toString()
toString 在类中 DefaultByteBufHolderpublic WebSocketFrame retain()
ReferenceCounted1.retain 在接口中 ByteBufHolderretain 在接口中 ReferenceCountedretain 在类中 DefaultByteBufHolderpublic WebSocketFrame retain(int increment)
ReferenceCountedincrement.retain 在接口中 ByteBufHolderretain 在接口中 ReferenceCountedretain 在类中 DefaultByteBufHolder