public enum KeyExchangeStorageEnum extends Enum<KeyExchangeStorageEnum>
Enum Constant and Description |
---|
LOCAL_MAP
使用Map作为交换密钥的存储策略
|
REDIS
使用Redis作为交换密钥的存储策略(推荐)
|
Modifier and Type | Method and Description |
---|---|
static KeyExchangeStorageEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyExchangeStorageEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyExchangeStorageEnum LOCAL_MAP
这是单节点的,不适合多节点(分布式)环境
public static final KeyExchangeStorageEnum REDIS
可在多节点(分布式)环境下使用
public static KeyExchangeStorageEnum[] values()
for (KeyExchangeStorageEnum c : KeyExchangeStorageEnum.values()) System.out.println(c);
public static KeyExchangeStorageEnum 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 © 2022 Pivotal Software, Inc.. All rights reserved.