|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.utils.SetCheckInSemaphore
public class SetCheckInSemaphore
This is a weird semaphore that makes every thread wait, until all of Strings from a given set have been "checked in".
| Constructor Summary | |
|---|---|
SetCheckInSemaphore(Set registrySet)
Creates a new CountDownSemaphore instance. |
|
| Method Summary | |
|---|---|
void |
checkIn(Object key)
Check in a key, but do not wait on the semaphore. |
void |
checkInAll()
Checks in all the remaining values, so that all threads can proceed immediately. |
void |
checkInAndWaitOn(Object key)
Checks in with a given name, and waits for others. |
void |
waitOn()
Wait on the semaphore, without checking in any keys. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetCheckInSemaphore(Set registrySet)
CountDownSemaphore instance.
registrySet - a Set of key objects
that will have to be "checked in" before any waiting threads are allowed to proceed.| Method Detail |
|---|
public void checkInAndWaitOn(Object key)
key - an Object valuepublic void checkIn(Object key)
key - an Object valuepublic void waitOn()
public void checkInAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||