public interface

HelixLock

org.apache.helix.lock.HelixLock
Known Indirect Subclasses

Class Overview

Generic (distributed) lock for Helix-related persisted updates

Summary

Public Methods
abstract boolean isBlocked()
Check if this object is blocked waiting on the lock
abstract boolean lock()
Synchronously acquire a lock
abstract boolean unlock()
Release a lock

Public Methods

public abstract boolean isBlocked ()

Check if this object is blocked waiting on the lock

Returns
  • true if blocked, false otherwise

public abstract boolean lock ()

Synchronously acquire a lock

Returns
  • true if the lock was acquired, false if could not be acquired

public abstract boolean unlock ()

Release a lock

Returns
  • true if the lock was released, false if it could not be released