Class ProducerImpl
java.lang.Object
com.here.platform.data.client.service.stream.kafka.ProducerImpl
- All Implemented Interfaces:
Producer
-
Constructor Summary
ConstructorsConstructorDescriptionProducerImpl(String topic, String loggingKey, org.apache.kafka.clients.producer.Producer<String, byte[]> producer, RetryPolicyType retryPolicyType, ClientExecutionContext clientExecutionContext) -
Method Summary
Modifier and TypeMethodDescriptionscala.concurrent.Future<org.apache.pekko.Done>close()final scala.concurrent.duration.FiniteDurationTime to block a close operation for kafka producer/consumer, including time to send all pending data.scala.concurrent.Future<org.apache.pekko.Done>send(PublishPartition partition, boolean isCompressed)
-
Constructor Details
-
ProducerImpl
public ProducerImpl(String topic, String loggingKey, org.apache.kafka.clients.producer.Producer<String, byte[]> producer, RetryPolicyType retryPolicyType, ClientExecutionContext clientExecutionContext)
-
-
Method Details
-
CloseKafkaTimeout
public final scala.concurrent.duration.FiniteDuration CloseKafkaTimeout()Time to block a close operation for kafka producer/consumer, including time to send all pending data. Default message send timeout is 60 seconds, so everything that is left there should be already timed out. -
clientExecutionContext
-
close
public scala.concurrent.Future<org.apache.pekko.Done> close() -
send
public scala.concurrent.Future<org.apache.pekko.Done> send(PublishPartition partition, boolean isCompressed)
-