| Package | Description |
|---|---|
| org.esbtools.eventhandler.lightblue.locking |
This package contains
LockStrategy, which is
the primary starting point for distributed locking mechanisms. |
| Modifier and Type | Method and Description |
|---|---|
default LockedResource<String> |
LockStrategy.tryAcquire(String resourceId)
Equivalent to
LockStrategy.tryAcquire(String, Object) in cases where the resource being locked is
not applicable, or is the same as the String resourceId provided. |
<T> LockedResource<T> |
LightblueAutoPingLockStrategy.tryAcquire(String resourceId,
T resource) |
<T> LockedResource<T> |
LockStrategy.tryAcquire(String resourceId,
T resource)
Attempts to acquire a lock by the provided
resourceId for the logical resource
provided by resource. |
default <T extends Lockable> |
LockStrategy.tryAcquire(T lockable)
Equivalent to
LockStrategy.tryAcquire(String, Object) except the resource being locked has the
knowledge of its own resourceId to lock with. |
Copyright © 2017. All rights reserved.