Class KafkaOp

java.lang.Object
io.nosqlbench.adapter.kafka.ops.KafkaOp
All Implemented Interfaces:
CycleOp<Object>, LongFunction<Object>

public class KafkaOp extends Object implements CycleOp<Object>
  • Field Details

    • kafkaSpace

      protected final KafkaSpace kafkaSpace
    • messageSizeHistogram

      protected final com.codahale.metrics.Histogram messageSizeHistogram
  • Constructor Details

  • Method Details

    • apply

      public Object apply(long value)
      Description copied from interface: CycleOp

      Run an action for the given cycle.

      Specified by:
      apply in interface CycleOp<Object>
      Specified by:
      apply in interface LongFunction<Object>
      Parameters:
      value - The cycle value for which an operation is run