public enum ConsumerCryptoFailureAction extends Enum<ConsumerCryptoFailureAction>
Enum Constant and Description |
---|
CONSUME
Deliver the encrypted message to the application.
|
DISCARD
Message is silently acknowledged and not delivered to the application.
|
FAIL
This is the default option to fail consume messages until crypto succeeds.
|
Modifier and Type | Method and Description |
---|---|
static ConsumerCryptoFailureAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsumerCryptoFailureAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsumerCryptoFailureAction FAIL
public static final ConsumerCryptoFailureAction DISCARD
public static final ConsumerCryptoFailureAction CONSUME
If message is also compressed, decompression will fail. If message contain batch messages, client will not be able to retrieve individual messages in the batch.
Delivered encrypted message contains EncryptionContext
which contains encryption and compression
information in it using which application can decrypt consumed message payload.
public static ConsumerCryptoFailureAction[] values()
for (ConsumerCryptoFailureAction c : ConsumerCryptoFailureAction.values()) System.out.println(c);
public static ConsumerCryptoFailureAction 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.