public abstract class AbstractEventClient extends Object implements EventClient
EventClient.EventGenerator<T>, EventClient.EventPoster<T>| Constructor and Description |
|---|
AbstractEventClient() |
| Modifier and Type | Method and Description |
|---|---|
<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) |
protected abstract <T> void |
postEvent(T event) |
@SafeVarargs public final <T> com.google.common.util.concurrent.ListenableFuture<Void> post(T... event) throws IllegalArgumentException
post in interface EventClientIllegalArgumentExceptionpublic final <T> com.google.common.util.concurrent.ListenableFuture<Void> post(Iterable<T> events) throws IllegalArgumentException
post in interface EventClientIllegalArgumentExceptionpublic final <T> com.google.common.util.concurrent.ListenableFuture<Void> post(EventClient.EventGenerator<T> eventGenerator) throws IllegalArgumentException
post in interface EventClientIllegalArgumentExceptionprotected abstract <T> void postEvent(T event)
throws IOException
IOExceptionCopyright © 2010–2024 Airlift. All rights reserved.