public class LockConstants
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
LOCK_FILE_SEPARATOR
锁文件间隔符
|
static java.lang.String |
LOCK_ID_SPLIT
锁文件的标识符
|
static int |
MAX_RETRY_COUNT
尝试获得锁的次数
|
static int |
NO_TIME_OUT
默认的等待锁时间:-1不超时
|
static java.lang.String |
READ_LOCK_PREFIX
读锁文件前缀
|
static java.lang.String |
WRITE_LOCK_PREFIX
写锁文件前缀
|
构造器和说明 |
---|
LockConstants() |
public static final java.lang.String LOCK_FILE_SEPARATOR
public static final java.lang.String WRITE_LOCK_PREFIX
public static final java.lang.String READ_LOCK_PREFIX
public static final int MAX_RETRY_COUNT
public static final java.lang.String LOCK_ID_SPLIT
public static final int NO_TIME_OUT