Class FenceProducersResult

java.lang.Object
org.apache.kafka.clients.admin.FenceProducersResult

@Evolving public class FenceProducersResult extends Object
The result of the Admin.fenceProducers(Collection) call. The API of this class is evolving, see Admin for details.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.kafka.common.KafkaFuture<Void>
    all()
    Return a future which succeeds only if all the producer fencings succeed.
    org.apache.kafka.common.KafkaFuture<Short>
    epochId(String transactionalId)
    Returns a future that provides the epoch ID generated while initializing the given transaction when the request completes.
    Map<String,org.apache.kafka.common.KafkaFuture<Void>>
    Return a map from transactional ID to futures which can be used to check the status of individual fencings.
    org.apache.kafka.common.KafkaFuture<Long>
    producerId(String transactionalId)
    Returns a future that provides the producer ID generated while initializing the given transaction when the request completes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fencedProducers

      public Map<String,org.apache.kafka.common.KafkaFuture<Void>> fencedProducers()
      Return a map from transactional ID to futures which can be used to check the status of individual fencings.
    • producerId

      public org.apache.kafka.common.KafkaFuture<Long> producerId(String transactionalId)
      Returns a future that provides the producer ID generated while initializing the given transaction when the request completes.
    • epochId

      public org.apache.kafka.common.KafkaFuture<Short> epochId(String transactionalId)
      Returns a future that provides the epoch ID generated while initializing the given transaction when the request completes.
    • all

      public org.apache.kafka.common.KafkaFuture<Void> all()
      Return a future which succeeds only if all the producer fencings succeed.