org.appng.api.search

## Class Producer<E>

- java.lang.Object
- - org.appng.api.search.BlockingQueueAccessor<E>
  - - org.appng.api.search.Producer<E>

- Type Parameters:
    `E` - the type produced by this `Producer`
  Direct Known Subclasses:
    DocumentProducer

      public class Producer<E>
      extends BlockingQueueAccessor<E>

  A `Producer` creates a product via the `BlockingQueueAccessor.put(Object)`, `BlockingQueueAccessor.put(Object, long)` and `BlockingQueueAccessor.putWithTimeout(Object, long)` method and offers it to it's (unknown) `Consumer`s via the `BlockingQueueAccessor.get()` , `BlockingQueueAccessor.get(long)` or `BlockingQueueAccessor.getWithTimeout(long)`-method.
  TODO MM this has nothing to do especially with searching! Design seems overloaded, use a shared single BlockingQueue for communication between consumer and producer!
  Author:
    Matthias Müller

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `Producer()`
    `protected` | `Producer(int queueSize)`

  - ### Method Summary

    - ### Methods inherited from class org.appng.api.search.BlockingQueueAccessor

      `get, get, getBlockingQueue, getWithTimeout, put, put, putWithTimeout`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Producer

          protected Producer(int queueSize)

    - #### Producer

          protected Producer()

Copyright © 2011–2023 aiticon GmbH. All rights reserved.