File tree Expand file tree Collapse file tree
rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public HttpAsyncResponseConsumerFactory getHttpAsyncResponseConsumerFactory() {
110110
111111 /**
112112 * How this request should handle warnings. If null (the default) then
113- * this request will default to the behavior dictacted by
113+ * this request will default to the behavior dictated by
114114 * {@link Rest5ClientBuilder#setStrictDeprecationMode}.
115115 * <p>
116116 * This can be set to {@link WarningsHandler#PERMISSIVE} if the client
@@ -273,7 +273,7 @@ public Builder setHttpAsyncResponseConsumerFactory(HttpAsyncResponseConsumerFact
273273
274274 /**
275275 * How this request should handle warnings. If null (the default) then
276- * this request will default to the behavior dictacted by
276+ * this request will default to the behavior dictated by
277277 * {@link Rest5ClientBuilder#setStrictDeprecationMode}.
278278 * <p>
279279 * This can be set to {@link WarningsHandler#PERMISSIVE} if the client
Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ public void cancelled() {
452452 listener .onDefinitiveFailure (Cancellable .newCancellationException ());
453453 }
454454 });
455- // needed to be able to cancel asnyc requests
455+ // needed to be able to cancel async requests
456456 if (futureRef instanceof org .apache .hc .core5 .concurrent .Cancellable ) {
457457 request .httpRequest .setDependency ((org .apache .hc .core5 .concurrent .Cancellable ) futureRef );
458458 }
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public void run() {
129129 /*
130130 * Skipped or already started tasks do nothing. In most cases tasks will be cancelled and not run, but we want to protect for
131131 * cases where future#cancel returns true yet the task runs. We want to make sure that such tasks do nothing otherwise they will
132- * schedule another round at the end and so on, leaving us with multiple parallel sniffing "tracks" whish is undesirable.
132+ * schedule another round at the end and so on, leaving us with multiple parallel sniffing "tracks" which is undesirable.
133133 */
134134 if (taskState .compareAndSet (TaskState .WAITING , TaskState .STARTED ) == false ) {
135135 return ;
You can’t perform that action at this time.
0 commit comments