Package com.neovisionaries.ws.client
Class CounterPayloadGenerator
- java.lang.Object
-
- com.neovisionaries.ws.client.CounterPayloadGenerator
-
- All Implemented Interfaces:
PayloadGenerator
class CounterPayloadGenerator extends java.lang.Object implements PayloadGenerator
-
-
Field Summary
Fields Modifier and Type Field Description private long
mCount
-
Constructor Summary
Constructors Constructor Description CounterPayloadGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
generate()
Generate a payload of a frame.private long
increment()
-
-
-
Method Detail
-
generate
public byte[] generate()
Description copied from interface:PayloadGenerator
Generate a payload of a frame.Note that the maximum payload length of control frames (e.g. ping frames) is 125 in bytes. Therefore, the length of a byte array returned from this method must not exceed 125 bytes.
- Specified by:
generate
in interfacePayloadGenerator
- Returns:
- A payload of a frame.
-
increment
private long increment()
-
-