public interface SharedLock
| Modifier and Type | Method and Description |
|---|---|
SharedCondition |
getCondition(String name)
Get a condition object associated with this lock, which can be used to
signal from one VM to another.
|
void |
lock()
Locks the lock on behalf of this thread, waiting forever.
|
void |
unlock()
Unlocks the lock on behalf of this thread.
|
void lock()
HydraRuntimeException - if the lock is already locked by this
logical thread.void unlock()
HydraRuntimeException - if the lock is already unlocked or is
owned by another logical thread.SharedCondition getCondition(String name)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.