public class OSharedResourceAdaptive extends Object
Modifier | Constructor and Description |
---|---|
protected |
OSharedResourceAdaptive() |
protected |
OSharedResourceAdaptive(boolean iConcurrent) |
protected |
OSharedResourceAdaptive(boolean iConcurrent,
int iTimeout,
boolean ignoreThreadInterruption) |
protected |
OSharedResourceAdaptive(int iTimeout) |
Modifier and Type | Method and Description |
---|---|
protected void |
acquireExclusiveLock() |
protected void |
acquireSharedLock() |
int |
addUser() |
boolean |
assertExclusiveLockHold()
To use in assert block.
|
boolean |
assertSharedLockHold()
To use in assert block.
|
int |
getUsers() |
boolean |
isConcurrent() |
protected void |
releaseExclusiveLock() |
protected void |
releaseSharedLock() |
int |
removeUser() |
protected boolean |
tryAcquireExclusiveLock() |
protected boolean |
tryAcquireSharedLock() |
protected OSharedResourceAdaptive()
protected OSharedResourceAdaptive(int iTimeout)
protected OSharedResourceAdaptive(boolean iConcurrent)
protected OSharedResourceAdaptive(boolean iConcurrent, int iTimeout, boolean ignoreThreadInterruption)
public int getUsers()
public int addUser()
public int removeUser()
public boolean isConcurrent()
public boolean assertExclusiveLockHold()
public boolean assertSharedLockHold()
protected void acquireExclusiveLock()
protected boolean tryAcquireExclusiveLock()
protected void acquireSharedLock()
protected boolean tryAcquireSharedLock()
protected void releaseExclusiveLock()
protected void releaseSharedLock()
Copyright © 2009–2020 OrientDB. All rights reserved.