org.epics.pvmanager
Class PVManager.PVManagerExpression<T>

java.lang.Object
  extended by org.epics.pvmanager.PVManager.PVManagerExpression<T>
Type Parameters:
T - the type of the expression
Enclosing class:
PVManager

public static class PVManager.PVManagerExpression<T>
extends java.lang.Object

An expression used to set the final parameters on how the pv expression should be monitored.


Method Summary
 PVManager.PVManagerExpression<T> andNotify(ThreadSwitch onThread)
          Defines on which thread the PVManager should notify the client.
 PV<T> atHz(double rate)
          Sets the rate of scan of the expression and creates the actual PV object that can be monitored through listeners.
 PVManager.PVManagerExpression<T> from(DataSource dataSource)
          Defines which DataSource should be used to read the data.
 PVManager.PVManagerExpression<T> routeExceptionsTo(ExceptionHandler exceptionHandler)
          Forwards exception to the given exception handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

routeExceptionsTo

public PVManager.PVManagerExpression<T> routeExceptionsTo(ExceptionHandler exceptionHandler)
Forwards exception to the given exception handler. No thread switch is done, so the handler is notified on the thread where the exception was thrown.

Giving a custom exception handler will disable the default handler, so PV.lastException() is no longer set and no notification is done.

Parameters:
exceptionHandler - an exception handler
Returns:
this

from

public PVManager.PVManagerExpression<T> from(DataSource dataSource)
Defines which DataSource should be used to read the data.

Parameters:
dataSource - a connection manager
Returns:
this

andNotify

public PVManager.PVManagerExpression<T> andNotify(ThreadSwitch onThread)
Defines on which thread the PVManager should notify the client.

Parameters:
onThread - the thread on which to notify
Returns:
this

atHz

public PV<T> atHz(double rate)
Sets the rate of scan of the expression and creates the actual PV object that can be monitored through listeners.

Parameters:
rate - rate in Hz; should be between 0 and 50
Returns:
the PV


Copyright © 2011. All Rights Reserved.