Class FlinkKafkaInternalProducer<K,V>
java.lang.Object
org.apache.flink.streaming.connectors.kafka.internals.FlinkKafkaInternalProducer<K,V>
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.clients.producer.Producer<K,V>
@PublicEvolving
@Deprecated
public class FlinkKafkaInternalProducer<K,V>
extends Object
implements org.apache.kafka.clients.producer.Producer<K,V>
Deprecated.
Internal flink kafka producer.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidDeprecated.voidclose()Deprecated.voidclose(java.time.Duration duration) Deprecated.voidDeprecated.voidflush()Deprecated.protected static Enum<?> Deprecated.shortgetEpoch()Deprecated.protected static ObjectDeprecated.Gets and returns the fieldfieldNamefrom the given Objectobjectusing reflection.longDeprecated.Deprecated.intDeprecated.voidDeprecated.protected static ObjectDeprecated.Map<org.apache.kafka.common.MetricName, ? extends org.apache.kafka.common.Metric> metrics()Deprecated.List<org.apache.kafka.common.PartitionInfo> partitionsFor(String topic) Deprecated.voidresumeTransaction(long producerId, short epoch) Deprecated.Instead of obtaining producerId and epoch from the transaction coordinator, re-use previously obtained ones, so that we can resume transaction after a restart.Future<org.apache.kafka.clients.producer.RecordMetadata> Deprecated.Future<org.apache.kafka.clients.producer.RecordMetadata> send(org.apache.kafka.clients.producer.ProducerRecord<K, V> record, org.apache.kafka.clients.producer.Callback callback) Deprecated.voidsendOffsetsToTransaction(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.clients.consumer.OffsetAndMetadata> offsets, String consumerGroupId) Deprecated.voidsendOffsetsToTransaction(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.clients.consumer.OffsetAndMetadata> map, org.apache.kafka.clients.consumer.ConsumerGroupMetadata consumerGroupMetadata) Deprecated.protected static voidDeprecated.Sets the fieldfieldNameon the given Objectobjecttovalueusing reflection.
-
Field Details
-
kafkaProducer
Deprecated. -
transactionalId
Deprecated.
-
-
Constructor Details
-
FlinkKafkaInternalProducer
Deprecated.
-
-
Method Details
-
initTransactions
public void initTransactions()Deprecated. -
beginTransaction
public void beginTransaction() throws org.apache.kafka.common.errors.ProducerFencedExceptionDeprecated. -
commitTransaction
public void commitTransaction() throws org.apache.kafka.common.errors.ProducerFencedExceptionDeprecated. -
abortTransaction
public void abortTransaction() throws org.apache.kafka.common.errors.ProducerFencedExceptionDeprecated. -
sendOffsetsToTransaction
public void sendOffsetsToTransaction(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.clients.consumer.OffsetAndMetadata> offsets, String consumerGroupId) throws org.apache.kafka.common.errors.ProducerFencedExceptionDeprecated. -
sendOffsetsToTransaction
public void sendOffsetsToTransaction(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.clients.consumer.OffsetAndMetadata> map, org.apache.kafka.clients.consumer.ConsumerGroupMetadata consumerGroupMetadata) throws org.apache.kafka.common.errors.ProducerFencedExceptionDeprecated. -
send
public Future<org.apache.kafka.clients.producer.RecordMetadata> send(org.apache.kafka.clients.producer.ProducerRecord<K, V> record) Deprecated. -
send
public Future<org.apache.kafka.clients.producer.RecordMetadata> send(org.apache.kafka.clients.producer.ProducerRecord<K, V> record, org.apache.kafka.clients.producer.Callback callback) Deprecated. -
partitionsFor
Deprecated. -
metrics
Deprecated. -
close
public void close()Deprecated. -
close
public void close(java.time.Duration duration) Deprecated. -
flush
public void flush()Deprecated. -
resumeTransaction
public void resumeTransaction(long producerId, short epoch) Deprecated.Instead of obtaining producerId and epoch from the transaction coordinator, re-use previously obtained ones, so that we can resume transaction after a restart. Implementation of this method is based onKafkaProducer.initTransactions(). https://github.com/apache/kafka/commit/5d2422258cb975a137a42a4e08f03573c49a387e#diff-f4ef1afd8792cd2a2e9069cd7ddea630 -
getTransactionalId
Deprecated. -
getProducerId
public long getProducerId()Deprecated. -
getEpoch
public short getEpoch()Deprecated. -
getTransactionCoordinatorId
@VisibleForTesting public int getTransactionCoordinatorId()Deprecated. -
getEnum
Deprecated. -
invoke
Deprecated. -
getField
Deprecated.Gets and returns the fieldfieldNamefrom the given Objectobjectusing reflection. -
setField
Deprecated.Sets the fieldfieldNameon the given Objectobjecttovalueusing reflection.
-