Package io.airlift.event.client
Class MultiEventClient
java.lang.Object
io.airlift.event.client.MultiEventClient
- All Implemented Interfaces:
EventClient
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.airlift.event.client.EventClient
EventClient.EventGenerator<T>, EventClient.EventPoster<T> -
Constructor Summary
ConstructorsConstructorDescriptionMultiEventClient(EventClient... clients) MultiEventClient(Set<EventClient> clients) -
Method Summary
-
Constructor Details
-
MultiEventClient
-
MultiEventClient
-
-
Method Details
-
post
@SafeVarargs public final <T> com.google.common.util.concurrent.ListenableFuture<Void> post(T... event) throws IllegalArgumentException - Specified by:
postin interfaceEventClient- Throws:
IllegalArgumentException
-
post
public <T> com.google.common.util.concurrent.ListenableFuture<Void> post(Iterable<T> events) throws IllegalArgumentException - Specified by:
postin interfaceEventClient- Throws:
IllegalArgumentException
-
post
public <T> com.google.common.util.concurrent.ListenableFuture<Void> post(EventClient.EventGenerator<T> eventGenerator) throws IllegalArgumentException - Specified by:
postin interfaceEventClient- Throws:
IllegalArgumentException
-