public enum ProducerCryptoFailureAction extends Enum<ProducerCryptoFailureAction>
Enum Constant and Description |
---|
FAIL
This is the default option to fail send if crypto operation fails.
|
SEND
Ignore crypto failure and proceed with sending unencrypted messages.
|
Modifier and Type | Method and Description |
---|---|
static ProducerCryptoFailureAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProducerCryptoFailureAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProducerCryptoFailureAction FAIL
public static final ProducerCryptoFailureAction SEND
public static ProducerCryptoFailureAction[] values()
for (ProducerCryptoFailureAction c : ProducerCryptoFailureAction.values()) System.out.println(c);
public static ProducerCryptoFailureAction 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 © 2017–2020 Apache Software Foundation. All rights reserved.