|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.epics.pvmanager.PVWriterConfiguration<T>
T - the type of the expressionpublic class PVWriterConfiguration<T>
An expression used to set the final parameters on how the pv expression should be written.
| Method Summary | |
|---|---|
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(java.util.concurrent.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(TimeDuration timeout)
|
PVWriterConfiguration<T> |
timeout(TimeDuration timeout,
java.lang.String timeoutMessage)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public PVWriterConfiguration<T> from(DataSource dataSource)
dataSource - a connection manager
public PVWriterConfiguration<T> notifyOn(java.util.concurrent.Executor onThread)
onThread - the thread on which to notify
public PVWriterConfiguration<T> timeout(TimeDuration timeout)
public PVWriterConfiguration<T> timeout(TimeDuration timeout,
java.lang.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 handler
public 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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||