|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.utils.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(java.util.Set registrySet)
Creates a new CountDownSemaphore instance. |
Method Summary | |
void |
checkIn(java.lang.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(java.lang.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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SetCheckInSemaphore(java.util.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(java.lang.Object key)
key
- an Object
valuepublic void checkIn(java.lang.Object key)
key
- an Object
valuepublic void waitOn()
public void checkInAll()
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |