public class OAdaptiveLock extends OAbstractLock
Constructor and Description |
---|
OAdaptiveLock() |
OAdaptiveLock(boolean iConcurrent) |
OAdaptiveLock(boolean iConcurrent,
int iTimeout,
boolean ignoreThreadInterruption) |
OAdaptiveLock(int iTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ReentrantLock |
getUnderlying() |
boolean |
isConcurrent() |
boolean |
isHeldByCurrentThread() |
void |
lock() |
boolean |
tryAcquireLock() |
boolean |
tryAcquireLock(long iTimeout,
TimeUnit iUnit) |
void |
unlock() |
callInLock
public OAdaptiveLock()
public OAdaptiveLock(int iTimeout)
public OAdaptiveLock(boolean iConcurrent)
public OAdaptiveLock(boolean iConcurrent, int iTimeout, boolean ignoreThreadInterruption)
public void lock()
public boolean tryAcquireLock()
public boolean tryAcquireLock(long iTimeout, TimeUnit iUnit)
public void unlock()
public void close()
public boolean isConcurrent()
public ReentrantLock getUnderlying()
public boolean isHeldByCurrentThread()
Copyright © 2009–2020 OrientDB. All rights reserved.