Class ElasticsearchTransport.HttpFunction

  • All Implemented Interfaces:
    java.util.function.Function<org.apache.http.HttpRequest,​org.elasticsearch.client.Response>
    Enclosing class:
    ElasticsearchTransport

    private static class ElasticsearchTransport.HttpFunction
    extends java.lang.Object
    implements java.util.function.Function<org.apache.http.HttpRequest,​org.elasticsearch.client.Response>
    Basic rest operations interacting with elastic cluster.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.elasticsearch.client.RestClient restClient  
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpFunction​(org.elasticsearch.client.RestClient restClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.elasticsearch.client.Response apply​(org.apache.http.HttpRequest request)  
      private org.elasticsearch.client.Response applyInternal​(org.apache.http.HttpRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Field Detail

      • restClient

        private final org.elasticsearch.client.RestClient restClient
    • Constructor Detail

      • HttpFunction

        HttpFunction​(org.elasticsearch.client.RestClient restClient)
    • Method Detail

      • apply

        public org.elasticsearch.client.Response apply​(org.apache.http.HttpRequest request)
        Specified by:
        apply in interface java.util.function.Function<org.apache.http.HttpRequest,​org.elasticsearch.client.Response>
      • applyInternal

        private org.elasticsearch.client.Response applyInternal​(org.apache.http.HttpRequest request)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException