Package io.airlift.event.client
Class AbstractEventClient
java.lang.Object
io.airlift.event.client.AbstractEventClient
- All Implemented Interfaces:
EventClient
- Direct Known Subclasses:
InMemoryEventClient,NullEventClient
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.airlift.event.client.EventClient
EventClient.EventGenerator<T>, EventClient.EventPoster<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <T> com.google.common.util.concurrent.ListenableFuture<Void>post(EventClient.EventGenerator<T> eventGenerator) final <T> com.google.common.util.concurrent.ListenableFuture<Void>final <T> com.google.common.util.concurrent.ListenableFuture<Void>post(T... event) protected abstract <T> voidpostEvent(T event)
-
Constructor Details
-
AbstractEventClient
public AbstractEventClient()
-
-
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 final <T> com.google.common.util.concurrent.ListenableFuture<Void> post(Iterable<T> events) throws IllegalArgumentException - Specified by:
postin interfaceEventClient- Throws:
IllegalArgumentException
-
post
public final <T> com.google.common.util.concurrent.ListenableFuture<Void> post(EventClient.EventGenerator<T> eventGenerator) throws IllegalArgumentException - Specified by:
postin interfaceEventClient- Throws:
IllegalArgumentException
-
postEvent
- Throws:
IOException
-