public enum ConsumerCryptoFailureAction extends Enum<ConsumerCryptoFailureAction>
| 枚举常量和说明 |
|---|
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
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ConsumerCryptoFailureAction |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ConsumerCryptoFailureAction[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2017–2019 Apache Software Foundation. All rights reserved.