Skip to content

Commit

Permalink
Elevate visibility of ReadFrom.isOrderSensitive() to protected #1145
Browse files Browse the repository at this point in the history
Exposing isOrderSensitive() to protected allows subclassing ReadFrom with order-sensitive/insensitive semantics.
  • Loading branch information
mp911de committed Oct 16, 2019
1 parent 1f924f1 commit 63f79fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/lettuce/core/ReadFrom.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public abstract class ReadFrom {
* {@link RedisNodeDescription nodes}.
* @since 5.2
*/
boolean isOrderSensitive() {
protected boolean isOrderSensitive() {
return false;
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/io/lettuce/core/ReadFromImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public List<RedisNodeDescription> select(Nodes nodes) {
}

@Override
boolean isOrderSensitive() {
protected boolean isOrderSensitive() {
return true;
}
}
Expand Down Expand Up @@ -142,7 +142,7 @@ public List<RedisNodeDescription> select(Nodes nodes) {
}

@Override
boolean isOrderSensitive() {
protected boolean isOrderSensitive() {
return true;
}
}
Expand All @@ -160,7 +160,7 @@ static class UnorderedPredicateReadFromAdapter extends OrderedPredicateReadFromA
}

@Override
boolean isOrderSensitive() {
protected boolean isOrderSensitive() {
return false;
}
}
Expand Down

0 comments on commit 63f79fd

Please sign in to comment.