File tree 1 file changed +3
-2
lines changed
client/rest/src/test/java/org/elasticsearch/client/documentation
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 36
36
import org .apache .http .ssl .SSLContextBuilder ;
37
37
import org .apache .http .ssl .SSLContexts ;
38
38
import org .apache .http .util .EntityUtils ;
39
- import org .elasticsearch .client .HttpAsyncResponseConsumerFactory . HeapBufferedResponseConsumerFactory ;
39
+ import org .elasticsearch .client .HttpAsyncResponseConsumerFactory ;
40
40
import org .elasticsearch .client .Node ;
41
41
import org .elasticsearch .client .NodeSelector ;
42
42
import org .elasticsearch .client .Request ;
@@ -84,7 +84,8 @@ public class RestClientDocumentation {
84
84
RequestOptions .Builder builder = RequestOptions .DEFAULT .toBuilder ();
85
85
builder .addHeader ("Authorization" , "Bearer " + TOKEN ); // <1>
86
86
builder .setHttpAsyncResponseConsumerFactory ( // <2>
87
- new HeapBufferedResponseConsumerFactory (30 * 1024 * 1024 * 1024 ));
87
+ new HttpAsyncResponseConsumerFactory
88
+ .HeapBufferedResponseConsumerFactory (30 * 1024 * 1024 * 1024 ));
88
89
COMMON_OPTIONS = builder .build ();
89
90
}
90
91
// end::rest-client-options-singleton
You can’t perform that action at this time.
0 commit comments