
org.infinispan.hotrod.impl.iteration.KeyTrackerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-hotrod-jakarta Show documentation
Show all versions of infinispan-hotrod-jakarta Show documentation
Infinispan Hot Rod Client Jakarta EE
package org.infinispan.hotrod.impl.iteration;
import java.util.Set;
import org.infinispan.hotrod.impl.DataFormat;
import org.infinispan.hotrod.impl.consistenthash.ConsistentHash;
import org.infinispan.hotrod.impl.consistenthash.SegmentConsistentHash;
/**
* @since 14.0
*/
final class KeyTrackerFactory {
private KeyTrackerFactory() {
}
public static KeyTracker create(DataFormat dataFormat, ConsistentHash hash, int topologyId, Set segments) {
if (topologyId == -1) return new NoOpSegmentKeyTracker();
if (hash == null) return new ReplKeyTracker();
return new SegmentKeyTracker(dataFormat, (SegmentConsistentHash) hash, segments);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy