public class AnySharedLockImpl extends Object implements SharedLock
RmiSharedLockImpl).| Constructor and Description |
|---|
AnySharedLockImpl(String name,
int type)
Create a facade with the specified name and transport type.
|
| Modifier and Type | Method and Description |
|---|---|
static SharedLock |
bind(String name,
int type)
Binds the shared lock in the location appropriate to the transport type
(rmiregistry for RMI).
|
SharedCondition |
getCondition(String name)
Implements
SharedLock.getCondition(String). |
void |
lock()
Implements
SharedLock.lock(). |
static SharedLock |
lookup(String name,
int type)
Looks up the shared lock in the location appropriate to the transport type
(rmiregistry for RMI).
|
protected void |
setRmiLock(RmiSharedLock rmil) |
void |
unlock()
Implements
SharedLock.unlock(). |
public AnySharedLockImpl(String name, int type)
name - the name of the shared lock.type - the transport type of the shared lock.protected void setRmiLock(RmiSharedLock rmil)
public static SharedLock bind(String name, int type)
public static SharedLock lookup(String name, int type)
null if not there.public void lock()
SharedLock.lock().lock in interface SharedLockpublic void unlock()
SharedLock.unlock().unlock in interface SharedLockpublic SharedCondition getCondition(String name)
SharedLock.getCondition(String).getCondition in interface SharedLockCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.