T
- value type for the writer managed by this directorpublic class PVWriterDirector<T> extends Object
This class is responsible for the correct writer operation, including:
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
connectExpression(WriteExpression<?> expression)
Connects the given expression.
|
void |
connectStatic(Exception ex,
boolean connection,
String channelName)
Simulate a static connection in which the channel name has one exception
and the connection will never change.
|
void |
disconnectExpression(WriteExpression<?> expression)
Disconnects the given expression.
|
public void connectStatic(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 connectExpression(WriteExpression<?> 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 disconnectExpression(WriteExpression<?> expression)
This can be used for dynamic expression, to remove and disconnects child expressions.
expression
- the expression to disconnectpublic void close()
Copyright © 2010–2015. All rights reserved.