public class CountDownWriteFunction extends ExceptionHandler
| Constructor and Description |
|---|
CountDownWriteFunction(int count) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(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)
ExceptionHandlerhandleException in class ExceptionHandleresception - the exceptionpublic void resetCount(int count)
count - new value for countpublic int getCount()
public boolean await(TimeDuration duration) throws InterruptedException
duration - time to waitInterruptedException - if interruptedpublic Exception getException()
Copyright © 2015. All rights reserved.