public class LockFile extends java.lang.Object implements LaunchIdLock
ListenerProperty.LOCK_FILE_NAME and ListenerProperty.SYNC_FILE_NAME properties.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCK_FILE_CHARSET |
| Constructor and Description |
|---|
LockFile(ListenerParameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
finishInstanceUuid(java.lang.String uuid)
Remove self UUID from sync file, means that a client finished its Launch.
|
java.lang.String |
obtainLaunchUuid(java.lang.String uuid)
Returns a Launch UUID for many Clients launched on one machine.
|
public static final java.lang.String LOCK_FILE_CHARSET
public LockFile(ListenerParameters parameters)
public java.lang.String obtainLaunchUuid(@Nonnull
java.lang.String uuid)
obtainLaunchUuid in interface LaunchIdLockuuid - a Client instance UUID, which will be written to lock and sync files and, if it the first thread which managed to
obtain lock on '.lock' file, returned to every client instance.public void finishInstanceUuid(java.lang.String uuid)
finishInstanceUuid in interface LaunchIdLockuuid - a Client instance UUID.