T
- type of the write payloadpublic interface PVWriter<T>
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.Modifier and Type | Method and Description |
---|---|
void |
addPVWriterListener(PVWriterListener<? extends T> 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.
|
boolean |
isWriteConnected()
True if the writer is connected and ready to write.
|
Exception |
lastWriteException()
Returns the last exception that was generated by write operations
and clears it (subsequent call will return null).
|
void |
removePVWriterListener(PVWriterListener<? extends T> listener)
Removes a listener to the value.
|
void |
write(T newValue)
Writes a new value.
|
void addPVWriterListener(PVWriterListener<? extends T> listener)
listener
- a new listenervoid removePVWriterListener(PVWriterListener<? extends T> listener)
listener
- the old listenervoid write(T newValue)
newValue
- void close()
boolean isClosed()
boolean isWriteConnected()
False if the channel is not connected, or is connected but can't be written to.
Exception lastWriteException()
Copyright © 2010–2015. All rights reserved.