public class HttpEventClient extends Object implements EventClient
EventClient.EventGenerator<T>, EventClient.EventPoster<T>| Constructor and Description |
|---|
HttpEventClient(HttpServiceSelector serviceSelector,
JsonEventWriter eventWriter,
NodeInfo nodeInfo,
HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
RequestStats |
getStats() |
<T> com.google.common.util.concurrent.ListenableFuture<Void> |
post(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) |
@Inject public HttpEventClient(HttpServiceSelector serviceSelector, JsonEventWriter eventWriter, NodeInfo nodeInfo, HttpClient httpClient)
public RequestStats getStats()
@SafeVarargs public final <T> com.google.common.util.concurrent.ListenableFuture<Void> post(T... event) throws IllegalArgumentException
post in interface EventClientIllegalArgumentExceptionpublic <T> com.google.common.util.concurrent.ListenableFuture<Void> post(Iterable<T> events) throws IllegalArgumentException
post in interface EventClientIllegalArgumentExceptionpublic <T> com.google.common.util.concurrent.ListenableFuture<Void> post(EventClient.EventGenerator<T> eventGenerator)
post in interface EventClientCopyright © 2010–2020 Airlift. All rights reserved.