@Immutable public enum FsSyncOption extends Enum<FsSyncOption>
FsController.sync(de.schlichtherle.truezip.util.BitField<de.schlichtherle.truezip.fs.FsSyncOption>) and
FsManager.sync(de.schlichtherle.truezip.util.BitField<de.schlichtherle.truezip.fs.FsSyncOption>).| Enum Constant and Description |
|---|
ABORT_CHANGES
If this option is set, all pending changes are aborted.
|
CLEAR_CACHE
Suppose a controller for a federated file system has cached entry data.
|
FORCE_CLOSE_INPUT
Suppose there are any open input resources (input streams etc.) for any
file system entries.
|
FORCE_CLOSE_OUTPUT
Similar to
FORCE_CLOSE_INPUT,
but applies to file system entry output resources (output streams etc.) |
WAIT_CLOSE_INPUT
Suppose there are any open input resources (input streams etc.) for any
file system entries.
|
WAIT_CLOSE_OUTPUT
Similar to
WAIT_CLOSE_INPUT,
but applies to file system entry output resources (output streams etc.) |
| Modifier and Type | Method and Description |
|---|---|
static FsSyncOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FsSyncOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FsSyncOption ABORT_CHANGES
public static final FsSyncOption CLEAR_CACHE
public static final FsSyncOption FORCE_CLOSE_INPUT
FsSyncWarningException with an InputBusyException as
its cause to indicate that any subsequent operations on these resources
will fail with an InputClosedException because they have been
forced to close.
If this option is not set however, the federated file system is
not updated, but instead
an FsSyncException with an InputBusyException as
its cause is thrown to indicate
that the application must close all input resources first.
public static final FsSyncOption FORCE_CLOSE_OUTPUT
FORCE_CLOSE_INPUT,
but applies to file system entry output resources (output streams etc.)
and may throw an OutputClosedException /
OutputBusyException instead.
If this option is set, then
FORCE_CLOSE_INPUT must be set, too.
Otherwise, an IllegalArgumentException is thrown.
public static final FsSyncOption WAIT_CLOSE_INPUT
Beware: If an input resource has not been closed because the client
application does not always properly close its streams, even on an
IOException (which is a typical bug in many Java applications),
then the respective file system controller will not return from the
update until the current thread gets interrupted!
public static final FsSyncOption WAIT_CLOSE_OUTPUT
WAIT_CLOSE_INPUT,
but applies to file system entry output resources (output streams etc.)
instead.public static FsSyncOption 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 static FsSyncOption[] values()
for (FsSyncOption c : FsSyncOption.values()) System.out.println(c);
Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.