DistributedLock is a JSON Structure definition published by Apache Curator, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/apache-curator/refs/heads/main/json-structure/apache-curator-distributed-lock-structure.json",
"name": "DistributedLock",
"description": "Configuration and state for an Apache Curator InterProcessMutex distributed lock.",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "ZooKeeper path used as the lock node.",
"example": "/locks/resource-a"
},
"acquired": {
"type": "boolean",
"description": "Whether the lock is currently acquired by this process.",
"example": true
},
"threadCount": {
"type": "int32",
"description": "Number of times the current thread holds the lock (reentrant count).",
"minimum": 0,
"example": 1
},
"lockPath": {
"type": "string",
"description": "Actual ZooKeeper ephemeral node path created for this lock acquisition.",
"example": "/locks/resource-a/_c_abc123-lock-0000000001"
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.