T
- value type for the reader managed by this directorpublic class PVDirector<T> extends Object
This class is responsible for the correct read operation, including:
Modifier and Type | Method and Description |
---|---|
void |
connectReadExpression(DesiredRateExpression<?> expression)
Connects the given expression.
|
void |
connectStaticRead(Exception ex,
boolean connection,
String channelName)
Simulate a static connection in which the channel has one exception
and the connection will never change.
|
void |
disconnectReadExpression(DesiredRateExpression<?> expression)
Disconnects the given expression.
|
void |
registerCollector(Collector<?,?> collector) |
public void registerCollector(Collector<?,?> collector)
public void connectReadExpression(DesiredRateExpression<?> expression)
This can be used for dynamic expression to add and connect child expressions. The added expression will be automatically closed when the associated reader is closed, if it's not disconnected first.
expression
- the expression to connectpublic void connectStaticRead(Exception ex, boolean connection, String channelName)
This is a temporary method an will be subject to change in the future. The aim is to allow to connect expressions that are not channels but can influence exception and connection state. For example, to report problems encountered during expression creation as runtime problems through the normal exception/connection methods.
In the future, this should be generalized to allow fully fledged expressions that connect/disconnect and can report errors.
ex
- the exception to queueconnection
- the connection flagchannelName
- the channel namepublic void disconnectReadExpression(DesiredRateExpression<?> expression)
This can be used for dynamic expression, to remove and disconnects child expressions.
expression
- the expression to disconnectCopyright © 2010–2015. All rights reserved.