Search in sources :

Example 1 with MultiTimelineEventConsumer

use of org.zalando.nakadi.repository.MultiTimelineEventConsumer in project nakadi by zalando.

the class TimelineService method createEventConsumer.

public EventConsumer createEventConsumer(@Nullable final String clientId, final List<NakadiCursor> positions) throws NakadiException, InvalidCursorException {
    final MultiTimelineEventConsumer result = new MultiTimelineEventConsumer(clientId, this, timelineSync, new NakadiCursorComparator(eventTypeCache));
    result.reassign(positions);
    return result;
}
Also used : NakadiCursorComparator(org.zalando.nakadi.service.NakadiCursorComparator) MultiTimelineEventConsumer(org.zalando.nakadi.repository.MultiTimelineEventConsumer)

Aggregations

MultiTimelineEventConsumer (org.zalando.nakadi.repository.MultiTimelineEventConsumer)1 NakadiCursorComparator (org.zalando.nakadi.service.NakadiCursorComparator)1