|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.epics.pvmanager.PVReaderConfiguration<T>
T - the type of the expressionpublic class PVReaderConfiguration<T>
An expression used to set the final parameters on how the pv expression should be monitored.
| Method Summary | |
|---|---|
PVReader<T> |
every(TimeDuration period)
Deprecated. |
PVReaderConfiguration<T> |
from(DataSource dataSource)
Defines which DataSource should be used to read the data. |
PVReader<T> |
maxRate(TimeDuration rate)
Sets the rate of scan of the expression and creates the actual PVReader
object that can be monitored through listeners. |
PVReaderConfiguration<T> |
notifyOn(java.util.concurrent.Executor onThread)
Defines on which thread the PVManager should notify the client. |
PVReaderConfiguration<T> |
routeExceptionsTo(ExceptionHandler exceptionHandler)
Forwards exception to the given exception handler. |
PVReaderConfiguration<T> |
timeout(TimeDuration timeout)
|
PVReaderConfiguration<T> |
timeout(TimeDuration timeout,
java.lang.String timeoutMessage)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public PVReaderConfiguration<T> from(DataSource dataSource)
dataSource - a connection manager
public PVReaderConfiguration<T> notifyOn(java.util.concurrent.Executor onThread)
onThread - the thread on which to notify
public PVReaderConfiguration<T> timeout(TimeDuration timeout)
public PVReaderConfiguration<T> timeout(TimeDuration timeout,
java.lang.String timeoutMessage)
public PVReaderConfiguration<T> routeExceptionsTo(ExceptionHandler exceptionHandler)
Giving a custom exception handler will disable the default handler,
so PVReader.lastException() is no longer set and no notification
is done.
exceptionHandler - an exception handler
public PVReader<T> maxRate(TimeDuration rate)
PVReader
object that can be monitored through listeners.
rate - the minimum time distance (i.e. the maximum rate) between two different notifications
@Deprecated public PVReader<T> every(TimeDuration period)
PVReader
object that can be monitored through listeners.
period - the minimum time distance (i.e. the maximum rate) at which notifications should be sent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||