public class ProcessMutex
extends java.lang.Object
Constructor and Description |
---|
ProcessMutex(int port)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
lock()
Acquire the lock.
|
void |
unlock()
Release the lock
|
public ProcessMutex(int port)
port
- synchronization TCP portpublic void lock() throws java.lang.InterruptedException
java.lang.InterruptedException
- in case of timeoutjava.lang.IllegalStateException
- in case lock is already acquiredpublic void unlock()
java.lang.IllegalStateException
- DOCUMENTME