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