public class PublisherPool extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
private Pattern |
attributeNameRegex |
private boolean |
closed |
private Charset |
headerCharacterSet |
private Map<String,Object> |
kafkaProperties |
private ComponentLog |
logger |
private long |
maxAckWaitMillis |
private int |
maxMessageSize |
private BlockingQueue<PublisherLease> |
publisherQueue |
private Supplier<String> |
transactionalIdSupplier |
private boolean |
useTransactions |
| Constructor and Description |
|---|
PublisherPool(Map<String,Object> kafkaProperties,
ComponentLog logger,
int maxMessageSize,
long maxAckWaitMillis,
boolean useTransactions,
Supplier<String> transactionalIdSupplier,
Pattern attributeNameRegex,
Charset headerCharacterSet) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
available()
Returns the number of leases that are currently available
|
void |
close() |
private PublisherLease |
createLease() |
boolean |
isClosed() |
PublisherLease |
obtainPublisher() |
private final ComponentLog logger
private final BlockingQueue<PublisherLease> publisherQueue
private final int maxMessageSize
private final long maxAckWaitMillis
private final boolean useTransactions
private final Pattern attributeNameRegex
private final Charset headerCharacterSet
private volatile boolean closed
public PublisherLease obtainPublisher()
private PublisherLease createLease()
public boolean isClosed()
public void close()
close in interface Closeableclose in interface AutoCloseableprotected int available()
Copyright © 2022 Apache NiFi Project. All rights reserved.