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
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
Methods 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:
close
in interfaceAutoCloseable
- Throws:
Exception
-