T
- the type of the expressionpublic class PVWriterConfiguration<T> extends Object
Modifier and Type | Method and Description |
---|---|
PVWriter<T> |
async()
Creates a new PVWriter where the
PVWriter.write(java.lang.Object)
method is asynchronous (i.e. |
PVWriterConfiguration<T> |
from(DataSource dataSource)
Defines which DataSource should be used to read the data.
|
PVWriterConfiguration<T> |
notifyOn(Executor onThread)
Defines on which thread the PVManager should notify the client.
|
PVWriterConfiguration<T> |
routeExceptionsTo(ExceptionHandler exceptionHandler)
Forwards exception to the given exception handler.
|
PVWriter<T> |
sync()
Creates a new PVWriter where the
PVWriter.write(java.lang.Object)
method is synchronous (i.e. |
PVWriterConfiguration<T> |
timeout(org.epics.util.time.TimeDuration timeout) |
PVWriterConfiguration<T> |
timeout(TimeDuration timeout)
Deprecated.
|
PVWriterConfiguration<T> |
timeout(org.epics.util.time.TimeDuration timeout,
String timeoutMessage) |
PVWriterConfiguration<T> |
timeout(TimeDuration timeout,
String timeoutMessage)
Deprecated.
|
public PVWriterConfiguration<T> from(DataSource dataSource)
dataSource
- a connection managerpublic PVWriterConfiguration<T> notifyOn(Executor onThread)
onThread
- the thread on which to notifypublic PVWriterConfiguration<T> timeout(org.epics.util.time.TimeDuration timeout)
public PVWriterConfiguration<T> timeout(org.epics.util.time.TimeDuration timeout, String timeoutMessage)
@Deprecated public PVWriterConfiguration<T> timeout(TimeDuration timeout)
@Deprecated public PVWriterConfiguration<T> timeout(TimeDuration timeout, String timeoutMessage)
public PVWriterConfiguration<T> routeExceptionsTo(ExceptionHandler exceptionHandler)
Giving a custom exception handler will disable the default handler,
so PVWriter.lastWriteException()
is no longer set and no notification
is done.
exceptionHandler
- an exception handlerpublic PVWriter<T> sync()
PVWriter.write(java.lang.Object)
method is synchronous (i.e. blocking).public PVWriter<T> async()
PVWriter.write(java.lang.Object)
method is asynchronous (i.e. non-blocking).Copyright © 2012. All Rights Reserved.