public class PongWebSocketFrame extends WebSocketFrame
Constructor and Description |
---|
PongWebSocketFrame()
Creates a new empty pong frame.
|
PongWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf binaryData)
Creates a new pong frame with the specified binary data
|
PongWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new pong frame with the specified binary data.
|
Modifier and Type | Method and Description |
---|---|
PongWebSocketFrame |
copy() |
PongWebSocketFrame |
duplicate() |
PongWebSocketFrame |
replace(io.netty.buffer.ByteBuf content) |
PongWebSocketFrame |
retain() |
PongWebSocketFrame |
retain(int increment) |
PongWebSocketFrame |
retainedDuplicate() |
PongWebSocketFrame |
touch() |
PongWebSocketFrame |
touch(Object hint) |
isFinalFragment, rsv, toString
public PongWebSocketFrame()
public PongWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
binaryData
- the content of the frame.public PongWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData)
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionsbinaryData
- the content of the frame.public PongWebSocketFrame copy()
copy
in interface io.netty.buffer.ByteBufHolder
copy
in class WebSocketFrame
public PongWebSocketFrame duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in class WebSocketFrame
public PongWebSocketFrame retainedDuplicate()
retainedDuplicate
in interface io.netty.buffer.ByteBufHolder
retainedDuplicate
in class WebSocketFrame
public PongWebSocketFrame replace(io.netty.buffer.ByteBuf content)
replace
in interface io.netty.buffer.ByteBufHolder
replace
in class WebSocketFrame
public PongWebSocketFrame retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
public PongWebSocketFrame retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
public PongWebSocketFrame touch()
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
touch
in class WebSocketFrame
public PongWebSocketFrame touch(Object hint)
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
touch
in class WebSocketFrame
Copyright © 2008–2017 The Netty Project. All rights reserved.