public static enum IOCache.Strategy extends Enum<IOCache.Strategy>
| Enum Constant and Description |
|---|
READ_ONLY
Any attempt to obtain an output socket will result in a
NullPointerException. |
WRITE_BACK
A write-back cache flushes any written data if and only if it gets
explicitly
flushed. |
WRITE_THROUGH
A write-through cache flushes any written data as soon as the
output stream created by
IOCache.getOutputSocket() gets closed. |
| Modifier and Type | Method and Description |
|---|---|
IOCache |
newCache(IOPool<?> pool)
Returns a new cache.
|
(package private) IOCache.InputBufferPool |
newInputBufferPool(IOCache cache) |
(package private) abstract IOCache.OutputBufferPool |
newOutputBufferPool(IOCache cache) |
static IOCache.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IOCache.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IOCache.Strategy READ_ONLY
NullPointerException.public static final IOCache.Strategy WRITE_THROUGH
IOCache.getOutputSocket() gets closed.public static final IOCache.Strategy WRITE_BACK
flushed.public static IOCache.Strategy[] values()
for (IOCache.Strategy c : IOCache.Strategy.values()) System.out.println(c);
public static IOCache.Strategy 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 IOCache newCache(IOPool<?> pool)
pool - the pool of temporary entries to cache the entry data.IOCache.InputBufferPool newInputBufferPool(IOCache cache)
abstract IOCache.OutputBufferPool newOutputBufferPool(IOCache cache)
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.