Class ResourceLockImpl<T>
java.lang.Object
org.apache.pulsar.metadata.coordination.impl.ResourceLockImpl<T>
- All Implemented Interfaces:
ResourceLock<T>
-
Constructor Summary
ConstructorsConstructorDescriptionResourceLockImpl(MetadataStoreExtended store, MetadataSerde<T> serde, String path) -
Method Summary
-
Constructor Details
-
ResourceLockImpl
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceResourceLock<T>- Returns:
- the value associated with the lock
-
updateValue
Description copied from interface:ResourceLockUpdate the value of the lock.- Specified by:
updateValuein interfaceResourceLock<T>- Returns:
- a future to track when the release operation is complete
-
release
Description copied from interface:ResourceLockRelease the lock on the resource.- Specified by:
releasein interfaceResourceLock<T>- Returns:
- a future to track when the release operation is complete
-
getLockExpiredFuture
Description copied from interface:ResourceLockGet a future that can be used to get notified when the lock is expired or it gets released.- Specified by:
getLockExpiredFuturein interfaceResourceLock<T>- Returns:
- a future to get notification if the lock is expired
-
getPath
- Specified by:
getPathin interfaceResourceLock<T>- Returns:
- the path associated with the lock
-
hashCode
public int hashCode()
-