|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Semaphores
A semaphore shared among all the processes that can connect to the central database. It's ignored when enabling the dry run mode.
| Nested Class Summary | |
|---|---|
static class |
Semaphores.Semaphore
|
| Method Summary | |
|---|---|
Semaphores.Semaphore |
acquire(String name)
Try to acquire a semaphore. |
Semaphores.Semaphore |
acquire(String name,
int maxAgeInSeconds,
int updatePeriodInSeconds)
Try to acquire a semaphore for a given duration. |
void |
release(String name)
Release the lock on a semaphore by its name. |
| Method Detail |
|---|
Semaphores.Semaphore acquire(String name,
int maxAgeInSeconds,
int updatePeriodInSeconds)
name - the key of the semaphoremaxAgeInSeconds - the max duration in seconds the semaphore will be considered unlocked if
it was not updated. The value zero forces the semaphore to be acquired, whatever its status.updatePeriodInSeconds - the period in seconds the semaphore will be updated.
Semaphores.Semaphore acquire(String name)
name - the key of the semaphore
void release(String name)
name - the key of the semaphore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||