public class CountDownWriteFunction extends ExceptionHandler
| Constructor and Description |
|---|
CountDownWriteFunction(int count) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(java.time.Duration duration)
Waits that the listener count goes to zero.
|
int |
getCount()
Current count.
|
Exception |
getException() |
void |
handleException(Exception esception) |
void |
resetCount(int count)
Changes the count back to count.
|
public void handleException(Exception esception)
handleException in class ExceptionHandlerpublic void resetCount(int count)
count - new value for countpublic int getCount()
public boolean await(java.time.Duration duration)
throws InterruptedException
duration - time to waitInterruptedException - if interruptedpublic Exception getException()
Copyright © 2018. All rights reserved.