Class AdjustableSemaphore
java.lang.Object
io.temporal.internal.worker.AdjustableSemaphore
A simple implementation of an adjustable semaphore.
-
Constructor Summary
ConstructorsConstructorDescriptionAdjustableSemaphore(int initialPermits) Create a new adjustable semaphore with the given number of initial permits. -
Method Summary
-
Constructor Details
-
AdjustableSemaphore
public AdjustableSemaphore(int initialPermits) Create a new adjustable semaphore with the given number of initial permits.- Parameters:
initialPermits- the initial number of permits, must be at least 1
-