public class CountDownPVWriterListener<T> extends Object implements PVWriterListener<T>
| Constructor and Description |
|---|
CountDownPVWriterListener(int count) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(TimeDuration duration)
Waits that the listener count goes to zero.
|
int |
getCount()
Current count.
|
PVWriterEvent<T> |
getEvent()
The last notified event.
|
int |
getNotificationCount()
The total number of notifications on this listener.
|
String |
getThreadName()
The thread name for the last notification.
|
void |
pvChanged(PVWriterEvent<T> event)
Notified when the value was written.
|
void |
resetCount(int count)
Changes the count back to count.
|
public void pvChanged(PVWriterEvent<T> event)
PVWriterListenerpvChanged in interface PVWriterListener<T>event - the writer eventpublic void resetCount(int count)
count - new value for countpublic int getCount()
public PVWriterEvent<T> getEvent()
public String getThreadName()
public int getNotificationCount()
public boolean await(TimeDuration duration) throws InterruptedException
duration - time to waitInterruptedException - if interruptedCopyright © 2015. All rights reserved.