public class BatchProcessor extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BatchProcessor.EventIterator |
protected static class |
BatchProcessor.EventRequestIterator |
| Constructor and Description |
|---|
BatchProcessor(int batchSize,
int concurrentRequests) |
| Modifier and Type | Method and Description |
|---|---|
void |
processEventRequests(List<EventRequest> eventRequests) |
Iterator<List<com.google.common.util.concurrent.ListenableFuture<EventResponse>>> |
processEventRequestsIterator(List<EventRequest> eventRequests) |
void |
processEvents(EventRequest eventRequestToClone,
List<Event> events) |
Iterator<List<com.google.common.util.concurrent.ListenableFuture<EventResponse>>> |
processEventsIterator(EventRequest eventRequestToClone,
List<Event> events) |
public void processEventRequests(List<EventRequest> eventRequests) throws ExecutionException, InterruptedException
public Iterator<List<com.google.common.util.concurrent.ListenableFuture<EventResponse>>> processEventsIterator(EventRequest eventRequestToClone, List<Event> events)
public void processEvents(EventRequest eventRequestToClone, List<Event> events) throws ExecutionException, InterruptedException
public Iterator<List<com.google.common.util.concurrent.ListenableFuture<EventResponse>>> processEventRequestsIterator(List<EventRequest> eventRequests)
Copyright © 2020. All rights reserved.