Package com.neovisionaries.ws.client
Class CounterPayloadGenerator
java.lang.Object
com.neovisionaries.ws.client.CounterPayloadGenerator
- All Implemented Interfaces:
PayloadGenerator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
mCount
private long mCount
-
-
Constructor Details
-
CounterPayloadGenerator
CounterPayloadGenerator()
-
-
Method Details
-
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()
-