public class ERXGlobalLock extends Object implements com.webobjects.foundation.NSLocking
App1:
NSLocking lock = ERXGlobalLock.lockForName("test");
lock.lock();
...
lock.unlock();
App2:
NSLocking lock = ERXGlobalLock.lockForName("test");
lock.lock();
...
lock.unlock();
Constructor and Description |
---|
ERXGlobalLock(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
cleanup()
Call this on startup.
|
void |
lock() |
static com.webobjects.foundation.NSLocking |
lockForName(String name) |
void |
unlock() |
public ERXGlobalLock(String name)
public void lock()
lock
in interface com.webobjects.foundation.NSLocking
public void unlock()
unlock
in interface com.webobjects.foundation.NSLocking
public boolean cleanup()
public static com.webobjects.foundation.NSLocking lockForName(String name)
Copyright © 2002 – 2020 Project Wonder.