public class PingWebSocketFrame extends WebSocketFrame
Constructor and Description |
---|
PingWebSocketFrame()
Creates a new empty ping frame.
|
PingWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf binaryData)
Creates a new ping frame with the specified binary data.
|
PingWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new ping frame with the specified binary data.
|
Modifier and Type | Method and Description |
---|---|
PingWebSocketFrame |
copy() |
PingWebSocketFrame |
duplicate() |
PingWebSocketFrame |
replace(io.netty.buffer.ByteBuf content) |
PingWebSocketFrame |
retain() |
PingWebSocketFrame |
retain(int increment) |
PingWebSocketFrame |
retainedDuplicate() |
PingWebSocketFrame |
touch() |
PingWebSocketFrame |
touch(Object hint) |
isFinalFragment, rsv, toString
public PingWebSocketFrame()
public PingWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
binaryData
- the content of the frame.public PingWebSocketFrame(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 PingWebSocketFrame copy()
copy
in interface io.netty.buffer.ByteBufHolder
copy
in class WebSocketFrame
public PingWebSocketFrame duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in class WebSocketFrame
public PingWebSocketFrame retainedDuplicate()
retainedDuplicate
in interface io.netty.buffer.ByteBufHolder
retainedDuplicate
in class WebSocketFrame
public PingWebSocketFrame replace(io.netty.buffer.ByteBuf content)
replace
in interface io.netty.buffer.ByteBufHolder
replace
in class WebSocketFrame
public PingWebSocketFrame retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
public PingWebSocketFrame retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
public PingWebSocketFrame touch()
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
touch
in class WebSocketFrame
public PingWebSocketFrame touch(Object hint)
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
touch
in class WebSocketFrame
Copyright © 2008–2023 The Netty Project. All rights reserved.