public abstract class BoundedInMemoryQueueConsumer<I,O> extends Object
| Constructor and Description |
|---|
BoundedInMemoryQueueConsumer() |
| Modifier and Type | Method and Description |
|---|---|
O |
consume(BoundedInMemoryQueue<?,I> queue)
API to de-queue entries to memory bounded queue.
|
protected abstract void |
consumeOneRecord(I record)
Consumer One record.
|
protected abstract void |
finish()
Notifies implementation that we have exhausted consuming records from queue.
|
protected abstract O |
getResult()
Return result of consuming records so far.
|
public O consume(BoundedInMemoryQueue<?,I> queue) throws Exception
queue - In Memory bounded queueExceptionprotected abstract void consumeOneRecord(I record)
protected abstract void finish()
protected abstract O getResult()
Copyright © 2022 The Apache Software Foundation. All rights reserved.