Class AbstractProducer<M extends Message>
java.lang.Object
org.nuxeo.lib.stream.pattern.producer.AbstractProducer<M>
- All Implemented Interfaces:
AutoCloseable,Iterator<M>,ProducerIterator<M>
- Direct Known Subclasses:
FileBlobMessageProducer,RandomDocumentMessageProducer,RandomStringBlobMessageProducer
public abstract class AbstractProducer<M extends Message>
extends Object
implements ProducerIterator<M>
- Since:
- 9.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, nextMethods inherited from interface org.nuxeo.lib.stream.pattern.producer.ProducerIterator
getPartition, remove
-
Field Details
-
producerId
protected final int producerId
-
-
Constructor Details
-
AbstractProducer
public AbstractProducer(int producerId)
-
-
Method Details
-
getProducerId
public int getProducerId() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-