private class ConsumerPool.SimpleConsumerLease extends ConsumerLease
| Modifier and Type | Field and Description |
|---|---|
private boolean |
closedConsumer |
private org.apache.kafka.clients.consumer.Consumer<byte[],byte[]> |
consumer |
private ProcessContext |
processContext |
private ProcessSession |
session |
| Modifier | Constructor and Description |
|---|---|
private |
SimpleConsumerLease(org.apache.kafka.clients.consumer.Consumer<byte[],byte[]> consumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Abstract method that is intended to be extended by the pool that created
this ConsumerLease object.
|
void |
close(boolean forceClose) |
ProcessSession |
getProcessSession() |
(package private) void |
setProcessSession(ProcessSession session,
ProcessContext context) |
void |
yield() |
commit, continuePolling, isPoisoned, onPartitionsAssigned, onPartitionsRevoked, poll, wakeupprivate final org.apache.kafka.clients.consumer.Consumer<byte[],byte[]> consumer
private volatile ProcessSession session
private volatile ProcessContext processContext
private volatile boolean closedConsumer
private SimpleConsumerLease(org.apache.kafka.clients.consumer.Consumer<byte[],byte[]> consumer)
void setProcessSession(ProcessSession session, ProcessContext context)
public void yield()
yield in class ConsumerLeasepublic ProcessSession getProcessSession()
getProcessSession in class ConsumerLeasepublic void close()
ConsumerLeaseclose in interface Closeableclose in interface AutoCloseableclose in class ConsumerLeasepublic void close(boolean forceClose)
Copyright © 2022 Apache NiFi Project. All rights reserved.