public interface ResourceLocker
Modifier and Type | Field and Description |
---|---|
static ResourceLocker |
NONE |
Modifier and Type | Method and Description |
---|---|
void |
acquireExclusive(ResourceType resourceType,
long... resourceIds)
Can be grabbed when no other client holds locks on the relevant resources.
|
static final ResourceLocker NONE
void acquireExclusive(ResourceType resourceType, long... resourceIds) throws AcquireLockTimeoutException
WaitStrategy
for the given ResourceType
.resourceType
- type or resource(s) to lock.resourceIds
- id(s) of resources to lock. Multiple ids should be ordered consistently by all callers
of this method.AcquireLockTimeoutException
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.