All Known Implementing Classes:
ProducerThreadPartitioner, SimpleRollingPartitioner

public interface IDataPartitioner<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
    partition(int total, T data)
     
  • Method Details

    • partition

      int partition(int total, T data)
    • maxRetryCount

      int maxRetryCount()
      Returns:
      an integer represents how many times should retry when BufferStrategy.IF_POSSIBLE.

      Less or equal 1, means not support retry.