public class NakadiClient extends Object
| Constructor and Description |
|---|
NakadiClient(URI baseUri,
org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory,
ExponentialBackoffStrategy exponentialBackoffStrategy,
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(Subscription subscription,
Class<T> eventType,
Listener<T> listener,
StreamParameters streamParameters) |
Subscription |
subscribe(String applicationName,
String eventName,
String consumerGroup) |
public NakadiClient(URI baseUri, org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory, ExponentialBackoffStrategy exponentialBackoffStrategy, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CursorManager cursorManager)
public List<Partition> getPartitions(String eventName) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic Subscription subscribe(String applicationName, String eventName, String consumerGroup) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic <T> void listen(Subscription subscription, Class<T> eventType, Listener<T> listener, StreamParameters streamParameters) throws IOException, ExponentialBackoffException
public <T> void listen(String eventName, Class<T> eventType, Listener<T> listener) throws IOException, ExponentialBackoffException
public <T> void listen(String eventName, Class<T> eventType, Listener<T> listener, StreamParameters streamParameters) throws IOException, ExponentialBackoffException
Copyright © 2016 Zalando SE. All rights reserved.