Class HttpEventClient

  • All Implemented Interfaces:
    io.airlift.event.client.EventClient

    public class HttpEventClient
    extends Object
    implements io.airlift.event.client.EventClient
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.airlift.event.client.EventClient

        io.airlift.event.client.EventClient.EventGenerator<T extends Object>, io.airlift.event.client.EventClient.EventPoster<T extends Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpEventClient​(io.airlift.discovery.client.HttpServiceSelector serviceSelector, io.airlift.event.client.JsonEventWriter eventWriter, io.airlift.node.NodeInfo nodeInfo, io.airlift.http.client.HttpClient httpClient)  
    • Constructor Detail

      • HttpEventClient

        @Inject
        public HttpEventClient​(io.airlift.discovery.client.HttpServiceSelector serviceSelector,
                               io.airlift.event.client.JsonEventWriter eventWriter,
                               io.airlift.node.NodeInfo nodeInfo,
                               io.airlift.http.client.HttpClient httpClient)
    • Method Detail

      • getStats

        public io.airlift.http.client.RequestStats getStats()
      • post

        public <T> com.google.common.util.concurrent.ListenableFuture<Void> post​(io.airlift.event.client.EventClient.EventGenerator<T> eventGenerator)
        Specified by:
        post in interface io.airlift.event.client.EventClient