public static enum FileLockManager.LockMode extends Enum<FileLockManager.LockMode>
| Enum Constant and Description |
|---|
Exclusive
Single writer, no readers.
|
None
No synchronisation is done.
|
Shared
Multiple readers, no writers.
|
| Modifier and Type | Method and Description |
|---|---|
static FileLockManager.LockMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileLockManager.LockMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileLockManager.LockMode None
public static final FileLockManager.LockMode Shared
public static final FileLockManager.LockMode Exclusive
public static FileLockManager.LockMode[] values()
for (FileLockManager.LockMode c : FileLockManager.LockMode.values()) System.out.println(c);
public static FileLockManager.LockMode 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 © 2013. All rights reserved