I - Type of entry produced for queuepublic class FunctionBasedQueueProducer<I> extends Object implements BoundedInMemoryQueueProducer<I>
| Constructor and Description |
|---|
FunctionBasedQueueProducer(Function<BoundedInMemoryQueue<I,?>,Boolean> producerFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
produce(BoundedInMemoryQueue<I,?> queue)
API to enqueue entries to memory bounded queue.
|
public FunctionBasedQueueProducer(Function<BoundedInMemoryQueue<I,?>,Boolean> producerFunction)
public void produce(BoundedInMemoryQueue<I,?> queue)
BoundedInMemoryQueueProducerproduce in interface BoundedInMemoryQueueProducer<I>queue - In Memory bounded queueCopyright © 2022 The Apache Software Foundation. All rights reserved.