public final class ProcessLimitedJdbcSemaphore extends Object implements Semaphore
Constructor and Description |
---|
ProcessLimitedJdbcSemaphore(JdbcSemaphore jdbcSemaphore,
int maxProcessPermits) |
Modifier and Type | Method and Description |
---|---|
void |
release(int nrReservations)
release a number of permits.
|
String |
toString() |
boolean |
tryAcquire(int nrPermits,
long deadlineNanos) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
release, toSemaphore
acquire, acquire, tryAcquire, tryAcquire
public ProcessLimitedJdbcSemaphore(JdbcSemaphore jdbcSemaphore, int maxProcessPermits)
public void release(int nrReservations)
Semaphore
public boolean tryAcquire(int nrPermits, long deadlineNanos) throws InterruptedException
tryAcquire
in interface PermitSupplier
InterruptedException
Copyright © 2018 SPF4J. All rights reserved.