T - type of record to dispatchpublic class RandomRecordDispatcher<T extends Record> extends AbstractRecordDispatcher<T>
BlockingQueue.| Constructor and Description |
|---|
RandomRecordDispatcher(List<BlockingQueue<T>> queues)
Create a
RandomRecordDispatcher instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatchRecord(T record) |
processRecordpublic RandomRecordDispatcher(List<BlockingQueue<T>> queues)
RandomRecordDispatcher instance.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.