public static enum CacheWriterConfiguration.WriteMode extends Enum<CacheWriterConfiguration.WriteMode>
CacheWriter
Enum Constant and Description |
---|
WRITE_BEHIND
Write mode enum constant that can be used to configure a cache writer to use write behind
|
WRITE_THROUGH
Write mode enum constant that can be used to configure a cache writer to use write through
|
Modifier and Type | Method and Description |
---|---|
abstract CacheWriterManager |
createWriterManager(Cache cache)
Create a new
WriterManager for a particular cache instance |
static CacheWriterConfiguration.WriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheWriterConfiguration.WriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheWriterConfiguration.WriteMode WRITE_THROUGH
public static final CacheWriterConfiguration.WriteMode WRITE_BEHIND
public static CacheWriterConfiguration.WriteMode[] values()
for (CacheWriterConfiguration.WriteMode c : CacheWriterConfiguration.WriteMode.values()) System.out.println(c);
public static CacheWriterConfiguration.WriteMode 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 abstract CacheWriterManager createWriterManager(Cache cache)
WriterManager
for a particular cache instancecache
- the cache instance for which the WriterManager
should be createdWriterManager
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.