T - type of record to dispatchpublic class RoundRobinRecordDispatcher<T extends Record> extends AbstractRecordDispatcher<T>
BlockingQueue in round-robin fashion.| Constructor and Description |
|---|
RoundRobinRecordDispatcher(List<BlockingQueue<T>> queues)
Create a
RoundRobinRecordDispatcher dispatcher. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatchRecord(T record) |
processRecordpublic RoundRobinRecordDispatcher(List<BlockingQueue<T>> queues)
RoundRobinRecordDispatcher dispatcher.queues - the list of queues to which records should be dispatchedpublic void dispatchRecord(T record) throws Exception
dispatchRecord in class AbstractRecordDispatcher<T extends Record>ExceptionCopyright © 2015. All Rights Reserved.