public static enum CuratorCache.Options extends Enum<CuratorCache.Options>
| Enum Constant and Description |
|---|
COMPRESSED_DATA
Decompress data via
Decompressible.decompressed() |
DO_NOT_CLEAR_ON_CLOSE
Normally, when the cache is closed via
CuratorCache.close(), the storage is cleared
via CuratorCacheStorage.clear(). |
SINGLE_NODE_CACHE
Normally the entire tree of nodes starting at the given node are cached.
|
| Modifier and Type | Method and Description |
|---|---|
static CuratorCache.Options |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CuratorCache.Options[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CuratorCache.Options SINGLE_NODE_CACHE
public static final CuratorCache.Options COMPRESSED_DATA
Decompressible.decompressed()public static final CuratorCache.Options DO_NOT_CLEAR_ON_CLOSE
CuratorCache.close(), the storage is cleared
via CuratorCacheStorage.clear(). This option prevents the storage from being cleared.public static CuratorCache.Options[] values()
for (CuratorCache.Options c : CuratorCache.Options.values()) System.out.println(c);
public static CuratorCache.Options 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 © 2011–2023 The Apache Software Foundation. All rights reserved.