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
WebSocketFrameMaskGeneratorimplementation which returns a random int for masking.
-
-
Field Summary
Fields Modifier and Type Field Description static RandomWebSocketFrameMaskGeneratorINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnextMask()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:WebSocketFrameMaskGeneratorReturn the next mask that is used to mask the payload of theWebSocketFrame.- Specified by:
nextMaskin interfaceWebSocketFrameMaskGenerator- Returns:
- mask.
-
-