Class CounterPayloadGenerator

java.lang.Object
com.neovisionaries.ws.client.CounterPayloadGenerator
All Implemented Interfaces:
PayloadGenerator

class CounterPayloadGenerator extends Object implements PayloadGenerator
  • 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 interface PayloadGenerator
      Returns:
      A payload of a frame.
    • increment

      private long increment()