R
- the read payloadW
- the write payloadpublic class PVConfiguration<R,W> extends Object
Modifier and Type | Method and Description |
---|---|
PV<R,W> |
asynchWriteAndMaxReadRate(org.epics.util.time.TimeDuration period)
Creates the pv such that writes are asynchronous and read notifications
comes at most at the rate specified.
|
PVConfiguration<R,W> |
from(DataSource dataSource)
Defines which DataSource should be used to read the data.
|
PVConfiguration<R,W> |
notifyOn(Executor onThread)
Defines on which thread the PVManager should notify the client.
|
PVConfiguration<R,W> |
readListener(PVReaderListener<? super R> listener)
Adds a listener for the read events.
|
PVConfiguration<R,W> |
routeExceptionsTo(ExceptionHandler exceptionHandler)
Forwards exception to the given exception handler.
|
PV<R,W> |
synchWriteAndMaxReadRate(org.epics.util.time.TimeDuration period)
Creates the pv such that writes are synchronous and read notifications
comes at most at the rate specified.
|
PVConfiguration<R,W> |
timeout(org.epics.util.time.TimeDuration timeout)
Sets a timeout for both reader and writer.
|
PVConfiguration<R,W> |
timeout(org.epics.util.time.TimeDuration timeout,
String timeoutMessage)
Sets a timeout with the given message for both read and writer.
|
PVConfiguration<R,W> |
timeout(org.epics.util.time.TimeDuration timeout,
String readMessage,
String writeMessage)
Specifies a timeout, with a different message for the read and the write.
|
PVConfiguration<R,W> |
writeListener(PVWriterListener<? extends W> listener)
Adds a listener for the write events.
|
public PVConfiguration<R,W> from(DataSource dataSource)
dataSource
- a connection managerpublic PVConfiguration<R,W> notifyOn(Executor onThread)
onThread
- the thread on which to notifypublic PVConfiguration<R,W> timeout(org.epics.util.time.TimeDuration timeout)
timeout
- duration of the timeoutpublic PVConfiguration<R,W> timeout(org.epics.util.time.TimeDuration timeout, String timeoutMessage)
timeout
- duration of the timeouttimeoutMessage
- message for the timeoutpublic PVConfiguration<R,W> timeout(org.epics.util.time.TimeDuration timeout, String readMessage, String writeMessage)
timeout
- time before notificationreadMessage
- exception message for the read timeoutwriteMessage
- exception message for the write timeoutpublic PVConfiguration<R,W> readListener(PVReaderListener<? super R> listener)
listener
- the new listenerpublic PVConfiguration<R,W> writeListener(PVWriterListener<? extends W> listener)
listener
- the new listenerpublic PVConfiguration<R,W> routeExceptionsTo(ExceptionHandler exceptionHandler)
Giving a custom exception handler will disable the default handler,
so PV.lastException()
and PV.lastWriteException()
is no longer set and no notification
is done.
exceptionHandler
- an exception handlerpublic PV<R,W> synchWriteAndMaxReadRate(org.epics.util.time.TimeDuration period)
period
- minimum time between read notificationsCopyright © 2010–2015. All rights reserved.