public final class LockOperation
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static LockOperation |
GET |
Get the lock defined by the values of the mode and obj fields, for
the specified locker.
|
static LockOperation |
GET_TIMEOUT |
Identical to LockOperation GET except that the value in the timeout
field overrides any previously specified timeout value for this
lock.
|
static LockOperation |
PUT |
The lock to which the lock field refers is released.
|
static LockOperation |
PUT_ALL |
All locks held by the specified locker are released.
|
static LockOperation |
PUT_OBJ |
All locks held on obj are released.
|
static LockOperation |
TIMEOUT |
Cause the specified locker to timeout immediately.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
toString() |
public static final LockOperation GET
Environment.lockVector
, if the lock field is non-null, a reference to the
acquired lock is stored there. (This reference is invalidated by
any call to Environment.lockVector
or Environment.putLock
that releases the lock.)public static final LockOperation GET_TIMEOUT
public static final LockOperation PUT
public static final LockOperation PUT_ALL
Environment.lockVector
which appear before the PUT_ALL operation are released; those
acquired in operations appearing after the PUT_ALL operation are not
released.public static final LockOperation PUT_OBJ
Environment.lockVector
that appear before the PUT_OBJ operation operation are released;
those acquired in operations appearing after the PUT_OBJ operation
are not released.public static final LockOperation TIMEOUT
Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.