public class CountDownWriteFunction extends ExceptionHandler
Constructor and Description |
---|
CountDownWriteFunction(int count) |
Modifier and Type | Method and Description |
---|---|
boolean |
await(org.epics.util.time.TimeDuration duration)
Waits that the listener count goes to zero.
|
int |
getCount()
Current count.
|
Exception |
getException() |
void |
handleException(Exception esception)
Notifies of an exception being thrown.
|
void |
resetCount(int count)
Changes the count back to count.
|
public void handleException(Exception esception)
ExceptionHandler
handleException
in class ExceptionHandler
esception
- the exceptionpublic void resetCount(int count)
count
- new value for countpublic int getCount()
public boolean await(org.epics.util.time.TimeDuration duration) throws InterruptedException
duration
- time to waitInterruptedException
public Exception getException()
Copyright © 2010–2015. All rights reserved.