|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.email.transport.ImapSemaphore
This class implemets Semaphore in order to permit to manager layer to retreive the UID of the added message.
Constructor Summary | |
ImapSemaphore(boolean _isGreen)
Create a new condition variable in a known state. |
Method Summary | |
boolean |
isTrue()
See if the condition variable is true (without releasing). |
void |
releaseAll()
Release all waiting threads without setting the condition true |
void |
releaseOne()
Release one waiting thread without setting the condition true |
void |
setFalse()
Set the condition to false. |
void |
setTrue()
Set the condition to true. |
void |
waitForTrue(long timeout)
Wait for the condition to become true. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImapSemaphore(boolean _isGreen)
_isGreen
- booleanMethod Detail |
public boolean isTrue()
public void setFalse()
public void setTrue()
public void releaseAll()
public void releaseOne()
public void waitForTrue(long timeout)
timeout
- Timeout in milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |