Package com.teracloud.streams.dl
package com.teracloud.streams.dl
This package provides distributed locking functions which can be used for safe, concurrent access to distributed stores from multiple threads and processes.
This is achieved using a trust based cooperative locking scheme to gain exclusive access into the stores for performing a set of transaction based store activities.
The main class is a
Lock
.
Use the DistributedLocks
class which provides access to a LockFactory
, from which Lock
objects can be created.
Each Lock has methods for acquiring and releasing it.-
ClassDescriptionThis is the main entry point into the locking API, used to create a
LockFactory
.This is an interface defining the available distributed lock (dl) methods.Any errors during distribute lock (dl) operation will result in this exception getting thrown.Any errors during lock creation will result in this exception getting thrown.