public class MultiEventClient extends Object implements EventClient
EventClient.EventGenerator<T>, EventClient.EventPoster<T>| Constructor and Description |
|---|
MultiEventClient(EventClient... clients) |
MultiEventClient(Set<EventClient> clients) |
| 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) |
public MultiEventClient(EventClient... clients)
@Inject public MultiEventClient(Set<EventClient> clients)
@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) throws IllegalArgumentException
post in interface EventClientIllegalArgumentExceptionCopyright © 2010–2024 Airlift. All rights reserved.