File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed
driver-core/src/main/com/mongodb Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -101,15 +101,6 @@ public abstract class ReadPreference {
101
101
*/
102
102
public abstract ReadPreference withHedgeOptions (ReadPreferenceHedgeOptions hedgeOptions );
103
103
104
- /**
105
- * True if this read preference allows reading from a secondary member of a replica set.
106
- *
107
- * @return if reading from a secondary is ok
108
- * @deprecated Prefer {@link #isSecondaryOk()}
109
- */
110
- @ Deprecated
111
- public abstract boolean isSlaveOk ();
112
-
113
104
/**
114
105
* True if this read preference allows reading from a secondary member of a replica set.
115
106
*
@@ -696,11 +687,6 @@ public TaggableReadPreference withHedgeOptions(final ReadPreferenceHedgeOptions
696
687
throw new UnsupportedOperationException ("Primary read preference can not also specify hedge" );
697
688
}
698
689
699
- @ Override
700
- public boolean isSlaveOk () {
701
- return false ;
702
- }
703
-
704
690
@ Override
705
691
public boolean isSecondaryOk () {
706
692
return false ;
Original file line number Diff line number Diff line change @@ -83,12 +83,6 @@ public abstract class TaggableReadPreference extends ReadPreference {
83
83
@ Override
84
84
public abstract TaggableReadPreference withHedgeOptions (ReadPreferenceHedgeOptions hedgeOptions );
85
85
86
- @ Override
87
- @ Deprecated
88
- public boolean isSlaveOk () {
89
- return true ;
90
- }
91
-
92
86
@ Override
93
87
public boolean isSecondaryOk () {
94
88
return true ;
You can’t perform that action at this time.
0 commit comments