public interface LaunchIdLock
| Modifier and Type | Field and Description |
|---|---|
static float |
MAX_WAIT_TIME_DISCREPANCY |
| Modifier and Type | Method and Description |
|---|---|
void |
finishInstanceUuid(java.lang.String instanceUuid)
Remove self UUID from a lock, means that a Client finished its Launch.
|
default java.util.Collection<java.lang.String> |
getLiveInstanceUuids()
Return all instance UUIDs which are still running.
|
java.lang.String |
obtainLaunchUuid(java.lang.String instanceUuid)
Returns a Launch UUID for many clients.
|
void |
updateInstanceUuid(java.lang.String instanceUuid)
Update self UUID in a lock, means that the Client still executing its Launch.
|
static final float MAX_WAIT_TIME_DISCREPANCY
@Nullable
java.lang.String obtainLaunchUuid(@Nonnull
java.lang.String instanceUuid)
instanceUuid - a Client instance UUID, which will be used to identify a Client and a Launch. If it the first one UUID passed to
the method it will be returned to every other client instance.void updateInstanceUuid(@Nonnull
java.lang.String instanceUuid)
instanceUuid - instanceUuid a Client instance UUIDvoid finishInstanceUuid(@Nonnull
java.lang.String instanceUuid)
instanceUuid - a Client instance UUID@Nonnull default java.util.Collection<java.lang.String> getLiveInstanceUuids()