public enum CacheOption extends Enum<CacheOption>
| Enum Constant and Description |
|---|
CACHE_ON_ACTOR
仅缓存事件到某 Actor 下
|
CACHE_ON_ROOM
缓存事件到整个房间
|
NO_CACHE
不缓存事件
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getCode() |
static CacheOption |
of(byte code) |
static CacheOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheOption NO_CACHE
public static final CacheOption CACHE_ON_ACTOR
public static final CacheOption CACHE_ON_ROOM
public static CacheOption[] values()
for (CacheOption c : CacheOption.values()) System.out.println(c);
public static CacheOption 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 nullpublic byte getCode()
public static CacheOption of(byte code)
Copyright © 2019 LeanCloud. All rights reserved.