Package org.epics.gpclient
Interface PVWriterConfiguration<T>
-
- Type Parameters:
T
- the type of the expression
- All Known Implementing Classes:
PVConfiguration
public interface PVWriterConfiguration<T>
An expression used to set the final parameters on how the pv expression should be written.- Author:
- carcassi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PVWriterConfiguration<T>
addListener(Consumer<PVEvent> listener)
Adds a listener for the expression.PVWriterConfiguration<T>
addWriteListener(PVWriterListener<T> listener)
Adds a write listener for the expression.PVWriterConfiguration<T>
connectionTimeout(Duration timeout)
Sends aTimeoutException
if the expression does not connect within the given duration.PVWriterConfiguration<T>
connectionTimeout(Duration timeout, String timeoutMessage)
Sends aTimeoutException
with the given message if the expression does not connect within the given duration.PVWriterConfiguration<T>
from(DataSource dataSource)
Defines which DataSource should be used to read/write the data.PVWriterConfiguration<T>
maxRate(Duration maxRate)
The maximum rate of notifications for this reader/writer.PVWriterConfiguration<T>
notifyOn(Executor onThread)
Defines on which thread to notify the client.PVWriter<T>
start()
Starts processing events for the expression.
-
-
-
Method Detail
-
from
PVWriterConfiguration<T> from(DataSource dataSource)
Defines which DataSource should be used to read/write the data.- Parameters:
dataSource
- the data source to access the data- Returns:
- this
-
notifyOn
PVWriterConfiguration<T> notifyOn(Executor onThread)
Defines on which thread to notify the client.- Parameters:
onThread
- the thread on which to notify- Returns:
- this
-
connectionTimeout
PVWriterConfiguration<T> connectionTimeout(Duration timeout)
Sends aTimeoutException
if the expression does not connect within the given duration.- Parameters:
timeout
- time to wait before the timeout- Returns:
- this
-
connectionTimeout
PVWriterConfiguration<T> connectionTimeout(Duration timeout, String timeoutMessage)
Sends aTimeoutException
with the given message if the expression does not connect within the given duration.- Parameters:
timeout
- time to wait before the timeouttimeoutMessage
- the exception message- Returns:
- this
-
maxRate
PVWriterConfiguration<T> maxRate(Duration maxRate)
The maximum rate of notifications for this reader/writer.- Parameters:
maxRate
- the maximum time between notifications- Returns:
- this
-
addWriteListener
PVWriterConfiguration<T> addWriteListener(PVWriterListener<T> listener)
Adds a write listener for the expression.- Parameters:
listener
- a new listener- Returns:
- this
-
addListener
PVWriterConfiguration<T> addListener(Consumer<PVEvent> listener)
Adds a listener for the expression.- Parameters:
listener
- a new listener- Returns:
- this
-
-