public class SemaphoreForTasks extends SemaphoreWithOwners
SemaphoreWithOwners
which additionally sets Task blocking information.
TODO As tasks are distributed this should support distribution across the management context.
Constructor and Description |
---|
SemaphoreForTasks(java.lang.String name,
int permits,
boolean fair,
ManagementContext mgmt) |
SemaphoreForTasks(java.lang.String name,
ManagementContext mgmt) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Task<?>> |
getOwningTasks() |
java.util.Set<Task<?>> |
getRequestingTasks() |
java.lang.String |
toString() |
acquire, acquire, acquireUnchecked, acquireUnchecked, acquireUninterruptibly, acquireUninterruptibly, getDescription, getName, getOwningThreads, getRequestingThreads, indicateCallingThreadWillRequest, isCallingThreadAnOwner, isInUse, release, release, setDescription, tryAcquire, tryAcquire, tryAcquire, tryAcquire
public SemaphoreForTasks(java.lang.String name, ManagementContext mgmt)
public SemaphoreForTasks(java.lang.String name, int permits, boolean fair, ManagementContext mgmt)
public java.util.Set<Task<?>> getRequestingTasks()
public java.util.List<Task<?>> getOwningTasks()
public java.lang.String toString()
toString
in class SemaphoreWithOwners