@Immutable public enum FsSyncOption extends java.lang.Enum<FsSyncOption>
FsController.sync(BitField),
FsSyncOptions| Enum Constant and Description |
|---|
ABORT_CHANGES
If this option is set, all pending changes are aborted.
|
CLEAR_CACHE
Suppose a file system controller has selectively cached entry contents.
|
FORCE_CLOSE_IO
Suppose there are any open I/O streams or channels for any file system
entries.
|
WAIT_CLOSE_IO
Suppose there are any open I/O streams or channels for any file system
entries.
|
| Modifier and Type | Method and Description |
|---|---|
static FsSyncOption |
valueOf(java.lang.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 WAIT_CLOSE_IO
WARNING: If an I/O resource has not been closed because
the client application does not always properly close its streams, even
on an IOException (which is a common 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 FORCE_CLOSE_IO
FsSyncWarningException with a
FsOpenResourceException as its cause to indicate that any
subsequent operations on these resources will fail with a
ClosedInputException or a ClosedOutputException
respectively because they have been forced to close.
If this option is not set however, the file system is not
updated, but instead an FsSyncException with a
FsOpenResourceException as its cause is thrown to indicate that
the application must close all I/O resources first.
public static final FsSyncOption ABORT_CHANGES
public static final FsSyncOption CLEAR_CACHE
Note that this option may induce dead locks or even busy loops when accessing nested archive files in different threads.
public static FsSyncOption[] values()
for (FsSyncOption c : FsSyncOption.values()) System.out.println(c);
public static FsSyncOption valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null