public class ForsetiClient extends Object implements org.neo4j.kernel.impl.locking.Locks.Client
| Constructor and Description |
|---|
ForsetiClient(int id,
ConcurrentMap<Long,org.neo4j.kernel.ha.lock.forseti.ForsetiLockManager.Lock>[] lockMaps,
org.neo4j.kernel.impl.util.concurrent.WaitStrategy<org.neo4j.kernel.impl.locking.AcquireLockTimeoutException>[] waitStrategies,
org.neo4j.collection.pool.LinkedQueuePool<ForsetiClient> clientPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireExclusive(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds) |
void |
acquireShared(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds) |
void |
close() |
void |
copyWaitListTo(org.neo4j.kernel.impl.util.collection.SimpleBitSet other) |
String |
describeWaitList() |
boolean |
equals(Object o) |
int |
getLockSessionId() |
int |
hashCode() |
int |
id() |
boolean |
isWaitingFor(int clientId) |
void |
releaseAll() |
void |
releaseAllExclusive() |
void |
releaseAllShared() |
void |
releaseExclusive(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds) |
void |
releaseShared(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds) |
String |
toString() |
boolean |
tryExclusiveLock(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds) |
boolean |
trySharedLock(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds) |
int |
waitListSize() |
public ForsetiClient(int id,
ConcurrentMap<Long,org.neo4j.kernel.ha.lock.forseti.ForsetiLockManager.Lock>[] lockMaps,
org.neo4j.kernel.impl.util.concurrent.WaitStrategy<org.neo4j.kernel.impl.locking.AcquireLockTimeoutException>[] waitStrategies,
org.neo4j.collection.pool.LinkedQueuePool<ForsetiClient> clientPool)
public void acquireShared(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds)
throws org.neo4j.kernel.impl.locking.AcquireLockTimeoutException
acquireShared in interface org.neo4j.kernel.impl.locking.Locks.Clientorg.neo4j.kernel.impl.locking.AcquireLockTimeoutExceptionpublic void acquireExclusive(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds)
throws org.neo4j.kernel.impl.locking.AcquireLockTimeoutException
acquireExclusive in interface org.neo4j.kernel.impl.locking.Locks.Clientorg.neo4j.kernel.impl.locking.AcquireLockTimeoutExceptionpublic boolean tryExclusiveLock(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds)
tryExclusiveLock in interface org.neo4j.kernel.impl.locking.Locks.Clientpublic boolean trySharedLock(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds)
trySharedLock in interface org.neo4j.kernel.impl.locking.Locks.Clientpublic void releaseShared(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds)
releaseShared in interface org.neo4j.kernel.impl.locking.Locks.Clientpublic void releaseExclusive(org.neo4j.kernel.impl.locking.Locks.ResourceType resourceType,
long... resourceIds)
releaseExclusive in interface org.neo4j.kernel.impl.locking.Locks.Clientpublic void releaseAllShared()
releaseAllShared in interface org.neo4j.kernel.impl.locking.Locks.Clientpublic void releaseAllExclusive()
releaseAllExclusive in interface org.neo4j.kernel.impl.locking.Locks.Clientpublic void releaseAll()
releaseAll in interface org.neo4j.kernel.impl.locking.Locks.Clientpublic void close()
close in interface AutoCloseableclose in interface org.neo4j.kernel.impl.locking.Locks.Clientpublic int getLockSessionId()
getLockSessionId in interface org.neo4j.kernel.impl.locking.Locks.Clientpublic int waitListSize()
public void copyWaitListTo(org.neo4j.kernel.impl.util.collection.SimpleBitSet other)
public boolean isWaitingFor(int clientId)
public String describeWaitList()
public int id()
Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.