public class CountDownPVWriterListener<T> extends Object implements PVWriterListener<T>
Constructor and Description |
---|
CountDownPVWriterListener(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.
|
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)
PVWriterListener
pvChanged
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(org.epics.util.time.TimeDuration duration) throws InterruptedException
duration
- time to waitInterruptedException
Copyright © 2010–2015. All rights reserved.