|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the PVReader.public interface PVReader<T>
An object representing the PVReader. It contains all elements that are common
to all PVs of all type. The payload is specified by the generic type,
and is returned by getValue()
. Changes in
values are notified through the PVReaderListener
. Listeners
can be registered from any thread. The value can only be accessed on the
thread on which the listeners is called.
Method Summary | |
---|---|
void |
addPVReaderListener(Class<?> clazz,
PVReaderListener listener)
Adds a listener to the value, which is notified only if the value is of a given type. |
void |
addPVReaderListener(PVReaderListener listener)
Adds a listener to the value. |
void |
close()
De-registers all listeners, stops all notifications and closes all connections from the data sources needed by this. |
String |
getName()
Returns the name of the PVReader. |
T |
getValue()
Returns the value of the PVReader. |
boolean |
isClosed()
True if no more notifications are going to be sent for this PVReader. |
Exception |
lastException()
Returns the last exception that was generated preparing the value for this PVReader and clears it (subsequent call will return null). |
void |
removePVReaderListener(PVReaderListener listener)
Removes a listener to the value. |
Method Detail |
---|
void addPVReaderListener(PVReaderListener listener)
listener
- a new listenervoid addPVReaderListener(Class<?> clazz, PVReaderListener listener)
clazz
- type to filter notifications forlistener
- a new listenervoid removePVReaderListener(PVReaderListener listener)
listener
- the old listenerString getName()
T getValue()
PVReaderListener
.
void close()
boolean isClosed()
Exception lastException()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |