Name | Description |
---|---|
DefaultPartitioner | DefaultPartitioner uses hash code of key (if key was provided) or just random number (if key wasn't provided) That means, that Producer requests with the same key go to the same partition. |
DirectPartitioner | Interprets key as partition number |
Producer | |
ProducerContext | ProducerContext is thread safe and may be shared among as many application threads as necessary, without any additional locking required on the part of the caller. |