|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - type of the write payloadpublic interface PVWriter<T>
An object representing a writable PV. The write payload is specified by the generic type,
and is changed is returned by write(java.lang.Object). Changes in
values are notified through the PVWriterListener. 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 |
addPVWriterListener(PVWriterListener 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. |
boolean |
isClosed()
True if no more notifications are going to be sent for this PV. |
java.lang.Exception |
lastWriteException()
Returns the last exception that was generated by write operations and clears it (subsequent call will return null). |
void |
removePVWriterListener(PVWriterListener listener)
Removes a listener to the value. |
void |
write(T newValue)
Writes a new value. |
| Method Detail |
|---|
void addPVWriterListener(PVWriterListener listener)
listener - a new listenervoid removePVWriterListener(PVWriterListener listener)
listener - the old listenervoid write(T newValue)
newValue - void close()
boolean isClosed()
java.lang.Exception lastWriteException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||