public class NakadiClient extends Object
| Constructor and Description |
|---|
NakadiClient(URI baseUri,
org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory,
BackoffStrategy backoffStrategy,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
CursorManager cursorManager) |
| Modifier and Type | Method and Description |
|---|---|
List<Partition> |
getPartitions(String eventName) |
<T> void |
listen(String eventName,
Class<T> eventType,
Listener<T> listener) |
<T> void |
listen(String eventName,
Class<T> eventType,
Listener<T> listener,
StreamParameters streamParameters) |
<T> void |
listen(String eventName,
Class<T> eventType,
Listener<T> listener,
StreamParameters streamParameters,
MetricsCollector metricsCollector) |
<T> void |
listen(Subscription subscription,
Class<T> eventType,
Listener<T> listener,
StreamParameters streamParameters) |
<T> void |
listen(Subscription subscription,
Class<T> eventType,
Listener<T> listener,
StreamParameters streamParameters,
MetricsCollector metricsCollector) |
Subscription |
subscribe(String applicationName,
String eventName,
String consumerGroup) |
public NakadiClient(URI baseUri, org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory, BackoffStrategy backoffStrategy, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CursorManager cursorManager)
public List<Partition> getPartitions(String eventName) throws IOException
IOExceptionpublic Subscription subscribe(String applicationName, String eventName, String consumerGroup) throws IOException
IOExceptionpublic <T> void listen(Subscription subscription, Class<T> eventType, Listener<T> listener, StreamParameters streamParameters) throws IOException
IOExceptionpublic <T> void listen(Subscription subscription, Class<T> eventType, Listener<T> listener, StreamParameters streamParameters, @Nullable MetricsCollector metricsCollector) throws IOException
IOExceptionpublic <T> void listen(String eventName, Class<T> eventType, Listener<T> listener) throws IOException
IOExceptionpublic <T> void listen(String eventName, Class<T> eventType, Listener<T> listener, StreamParameters streamParameters) throws IOException
IOExceptionpublic <T> void listen(String eventName, Class<T> eventType, Listener<T> listener, StreamParameters streamParameters, @Nullable MetricsCollector metricsCollector) throws IOException
IOExceptionCopyright © 2016 Zalando SE. All rights reserved.