Package io.airlift.event.client.http
Class HttpEventClient
- java.lang.Object
-
- io.airlift.event.client.http.HttpEventClient
-
- All Implemented Interfaces:
io.airlift.event.client.EventClient
public class HttpEventClient extends Object implements io.airlift.event.client.EventClient
-
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.airlift.http.client.RequestStatsgetStats()<T> com.google.common.util.concurrent.ListenableFuture<Void>post(io.airlift.event.client.EventClient.EventGenerator<T> eventGenerator)<T> com.google.common.util.concurrent.ListenableFuture<Void>post(Iterable<T> events)<T> com.google.common.util.concurrent.ListenableFuture<Void>post(T... event)
-
-
-
Method Detail
-
getStats
public io.airlift.http.client.RequestStats getStats()
-
post
@SafeVarargs public final <T> com.google.common.util.concurrent.ListenableFuture<Void> post(T... event) throws IllegalArgumentException
- Specified by:
postin interfaceio.airlift.event.client.EventClient- Throws:
IllegalArgumentException
-
post
public <T> com.google.common.util.concurrent.ListenableFuture<Void> post(Iterable<T> events) throws IllegalArgumentException
- Specified by:
postin interfaceio.airlift.event.client.EventClient- Throws:
IllegalArgumentException
-
post
public <T> com.google.common.util.concurrent.ListenableFuture<Void> post(io.airlift.event.client.EventClient.EventGenerator<T> eventGenerator)
- Specified by:
postin interfaceio.airlift.event.client.EventClient
-
-