public class CountDownPVReaderListener extends Object implements PVReaderListener<Object>
| Constructor and Description |
|---|
CountDownPVReaderListener(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.
|
PVReaderEvent<Object> |
getEvent() |
void |
pvChanged(PVReaderEvent<Object> event) |
void |
resetCount(int count)
Changes the count back to count.
|
public void pvChanged(PVReaderEvent<Object> event)
pvChanged in interface PVReaderListener<Object>public 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 waitInterruptedExceptionpublic PVReaderEvent<Object> getEvent()
Copyright © 2010-2014 Brookhaven National Laboratory. All Rights Reserved.