You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/write-load-forecaster/src/main/java/org/elasticsearch/xpack/writeloadforecaster/LicensedWriteLoadForecaster.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,10 @@ public OptionalDouble getForecastedWriteLoad(IndexMetadata indexMetadata) {
166
166
returnindexMetadata.getForecastedWriteLoad();
167
167
}
168
168
169
+
/**
170
+
* Used to atomically {@code getAndSet()} the {@link #hasValidLicence} field. This is better than an
171
+
* {@link java.util.concurrent.atomic.AtomicBoolean} because it takes one less pointer dereference on each read.
0 commit comments