public abstract class AbstractProducer<M extends Message> extends Object implements ProducerIterator<M>
Modifier and Type | Field and Description |
---|---|
protected int |
producerId |
Constructor and Description |
---|
AbstractProducer(int producerId) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getProducerId() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPartition, remove
forEachRemaining, hasNext, next
protected final int producerId
public AbstractProducer(int producerId)
public int getProducerId()
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2018 Nuxeo. All rights reserved.