public enum SLockDetectMode extends java.lang.Enum<SLockDetectMode>
Enum Constant and Description |
---|
EXPIRE
Reject lock requests which have timed out.
|
MAX_LOCKS
Reject the lock request for the locker ID with the most locks.
|
MAX_WRITE
Reject the lock request for the locker ID with the most write locks.
|
MIN_LOCKS
Reject the lock request for the locker ID with the fewest locks.
|
MIN_WRITE
Reject the lock request for the locker ID with the fewest write locks.
|
OLDEST
Reject the lock request for the locker ID with the oldest lock.
|
RANDOM
Reject the lock request for a random locker ID.
|
YOUNGEST
Reject the lock request for the locker ID with the youngest lock.
|
Modifier and Type | Method and Description |
---|---|
static SLockDetectMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SLockDetectMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SLockDetectMode EXPIRE
public static final SLockDetectMode MAX_LOCKS
public static final SLockDetectMode MAX_WRITE
public static final SLockDetectMode MIN_LOCKS
public static final SLockDetectMode MIN_WRITE
public static final SLockDetectMode OLDEST
public static final SLockDetectMode RANDOM
public static final SLockDetectMode YOUNGEST
public static SLockDetectMode[] values()
for (SLockDetectMode c : SLockDetectMode.values()) System.out.println(c);
public static SLockDetectMode 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 nullCopyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.