public enum ProducerAcks extends Enum<ProducerAcks>
| Enum Constant and Description |
|---|
ALL
This means the leader will wait for the full set of in-sync replicas to acknowledge the record.
|
ONE
This will mean the leader will write the record to its local log but will respond
without awaiting full acknowledgement from all followers.
|
ZERO
If set to zero then the producer will not wait for any acknowledgment from the server at all.
|
| Modifier and Type | Method and Description |
|---|---|
static ProducerAcks |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProducerAcks[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProducerAcks ALL
public static final ProducerAcks ZERO
public static final ProducerAcks ONE
public static ProducerAcks[] values()
for (ProducerAcks c : ProducerAcks.values()) System.out.println(c);
public static ProducerAcks valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2004–2018. All rights reserved.