public class CountDownPVReaderListener extends Object implements PVReaderListener<Object>
Constructor and Description |
---|
CountDownPVReaderListener(int count) |
CountDownPVReaderListener(int count,
int mask) |
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.
|
PVReaderEvent<Object> |
getEvent() |
void |
pvChanged(PVReaderEvent<Object> event)
Notified when the value of the PV has changed.
|
void |
resetCount(int count)
Changes the count back to count.
|
public CountDownPVReaderListener(int count)
public CountDownPVReaderListener(int count, int mask)
public void pvChanged(PVReaderEvent<Object> event)
PVReaderListener
pvChanged
in interface PVReaderListener<Object>
event
- the reader eventpublic 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 PVReaderEvent<Object> getEvent()
Copyright © 2010–2015. All rights reserved.