Class ProducerThreadPartitioner<T>
java.lang.Object
org.apache.skywalking.oap.server.library.datacarrier.partition.ProducerThreadPartitioner<T>
- All Implemented Interfaces:
IDataPartitioner<T>
use threadid % total to partition
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProducerThreadPartitioner
public ProducerThreadPartitioner()
-
-
Method Details
-
partition
- Specified by:
partitionin interfaceIDataPartitioner<T>
-
maxRetryCount
public int maxRetryCount()- Specified by:
maxRetryCountin interfaceIDataPartitioner<T>- Returns:
- an integer represents how many times should retry when
BufferStrategy.IF_POSSIBLE.Less or equal 1, means not support retry.
-