Class RandomWebSocketFrameMaskGenerator
- java.lang.Object
-
- io.netty.handler.codec.http.websocketx.RandomWebSocketFrameMaskGenerator
-
- All Implemented Interfaces:
WebSocketFrameMaskGenerator
public final class RandomWebSocketFrameMaskGenerator extends java.lang.Object implements WebSocketFrameMaskGenerator
WebSocketFrameMaskGenerator
implementation which returns a random int for masking.
-
-
Field Summary
Fields Modifier and Type Field Description static RandomWebSocketFrameMaskGenerator
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
nextMask()
Return the next mask that is used to mask the payload of theWebSocketFrame
.
-
-
-
Field Detail
-
INSTANCE
public static final RandomWebSocketFrameMaskGenerator INSTANCE
-
-
Method Detail
-
nextMask
public int nextMask()
Description copied from interface:WebSocketFrameMaskGenerator
Return the next mask that is used to mask the payload of theWebSocketFrame
.- Specified by:
nextMask
in interfaceWebSocketFrameMaskGenerator
- Returns:
- mask.
-
-