public abstract class WebSocketFrame extends DefaultByteBufHolder
Modifier | Constructor and Description |
---|---|
protected |
WebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData) |
protected |
WebSocketFrame(ByteBuf binaryData) |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString() |
WebSocketFrame |
touch()
Records the current access location of this object for debugging purposes.
|
WebSocketFrame |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
content, refCnt, release, release
protected WebSocketFrame(ByteBuf binaryData)
protected WebSocketFrame(boolean finalFragment, int rsv, ByteBuf binaryData)
public boolean isFinalFragment()
public int rsv()
public abstract WebSocketFrame copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in class DefaultByteBufHolder
public abstract WebSocketFrame duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in class DefaultByteBufHolder
public String toString()
toString
in class DefaultByteBufHolder
public WebSocketFrame retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public WebSocketFrame retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public WebSocketFrame touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public WebSocketFrame touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
Copyright © 2008–2015 The Netty Project. All rights reserved.