Creates a Semaphore with the provided number of permits
Creates a Semaphore with the provided number of permits
Consul host
The name to use for the Semaphore in Consul
The initial number of permits available. This value may be negative, in which case releases must occur before any acquires will be granted
Destroys all data stored in Consul for a Semaphore.
Destroys all data stored in Consul for a Semaphore. Purpose is to clean out stale data.
Consul host
The name to use for the Semaphore in Consul
(Since version ) see corresponding Javadoc for more information.
Companion object to Semaphore