RequiresConsistency indicates to the user of the partitioner whether the mapping of key->partition is consistent or not. Specifically, if a partitioner requires consistency then it must be allowed to choose from all partitions (even ones known to be unavailable), and its choice must be respected by
()
| 21 | // partitions (even ones known to be unavailable), and its choice must be |
| 22 | // respected by the caller. The obvious example is the HashPartitioner. |
| 23 | RequiresConsistency() bool |
| 24 | } |
| 25 | |
| 26 | // DynamicConsistencyPartitioner can optionally be implemented by Partitioners |
no outgoing calls
no test coverage detected