forked from infinispan/infinispan
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HACK] Patch ReplicatedConsistentHash implementation directly to expe…
…riment with affinity tagging
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
core/src/main/java/org/infinispan/distribution/ch/AffinityTaggedKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.infinispan.distribution.ch; | ||
|
||
public interface AffinityTaggedKey { | ||
|
||
/** | ||
* This numeric id is used exclusively for storage affinity in Infinispan. | ||
* | ||
* @return the segment id to be used for storage, or -1 to fall back to normal owner selection. | ||
*/ | ||
int getAffinitySegmentId(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
lucene/lucene-directory/src/main/java/org/infinispan/lucene/IndexScopedKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters