Modifier and Type | Field and Description |
---|---|
static AcquisitionPolicy |
IMMEDIATE
Attempts to acquire the lock immediately.
|
static AcquisitionPolicy |
WAIT
Waits until the
Lock has been acquired |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
acquire(Lock lock)
Acquires the lock according to the implementation requirements
|
public static final AcquisitionPolicy IMMEDIATE
public static final AcquisitionPolicy WAIT
Lock
has been acquiredpublic abstract boolean acquire(@NotNull Lock lock)
lock
- Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.