public enum FileLockMethod extends Enum<FileLockMethod>
| 枚举常量和说明 |
|---|
FILE
This locking method means the cooperative file locking protocol should be
used.
|
FS
Use the file system to lock the file; don't use a separate lock file.
|
NO
This locking method means no locking is used at all.
|
SOCKET
This locking method means a socket is created on the given machine.
|
public static final FileLockMethod NO
public static final FileLockMethod FILE
public static final FileLockMethod SOCKET
public static final FileLockMethod FS
public static FileLockMethod[] values()
for (FileLockMethod c : FileLockMethod.values()) System.out.println(c);
public static FileLockMethod valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2022. All rights reserved.