|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.epics.pvmanager.PVConfiguration<R,W>
R - the read payloadW - the write payloadpublic class PVConfiguration<R,W>
Allows to configure the type of read/write PV to create.
| Method Summary | |
|---|---|
PV<R,W> |
asynchWriteAndMaxReadRate(TimeDuration period)
Creates the pv such that writes are asynchronous and read notifications comes at most at the rate specified. |
PV<R,W> |
asynchWriteAndReadEvery(TimeDuration period)
Deprecated. |
PVConfiguration<R,W> |
from(DataSource dataSource)
Defines which DataSource should be used to read the data. |
PVConfiguration<R,W> |
notifyOn(java.util.concurrent.Executor onThread)
Defines on which thread the PVManager should notify the client. |
PVConfiguration<R,W> |
routeExceptionsTo(ExceptionHandler exceptionHandler)
Forwards exception to the given exception handler. |
PV<R,W> |
synchWriteAndMaxReadRate(TimeDuration period)
Creates the pv such that writes are synchronous and read notifications comes at most at the rate specified. |
PV<R,W> |
synchWriteAndReadEvery(TimeDuration period)
Deprecated. |
PVConfiguration<R,W> |
timeout(TimeDuration timeout)
|
PVConfiguration<R,W> |
timeout(TimeDuration timeout,
java.lang.String timeoutMessage)
|
PVConfiguration<R,W> |
timeout(TimeDuration timeout,
java.lang.String readMessage,
java.lang.String writeMessage)
Specifies a timeout, with a different message for the read and the write. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public PVConfiguration<R,W> from(DataSource dataSource)
dataSource - a connection manager
public PVConfiguration<R,W> notifyOn(java.util.concurrent.Executor onThread)
onThread - the thread on which to notify
public PVConfiguration<R,W> timeout(TimeDuration timeout)
public PVConfiguration<R,W> timeout(TimeDuration timeout,
java.lang.String timeoutMessage)
public PVConfiguration<R,W> timeout(TimeDuration timeout,
java.lang.String readMessage,
java.lang.String writeMessage)
timeout - time before notificationreadMessage - exception message for the read timeoutwriteMessage - exception message for the write timeout
public PVConfiguration<R,W> routeExceptionsTo(ExceptionHandler exceptionHandler)
Giving a custom exception handler will disable the default handler,
so PV.lastException() and PV.lastWriteException()
is no longer set and no notification
is done.
exceptionHandler - an exception handler
public PV<R,W> synchWriteAndMaxReadRate(TimeDuration period)
period - minimum time between read notifications
public PV<R,W> asynchWriteAndMaxReadRate(TimeDuration period)
period - minimum time between read notifications
@Deprecated public PV<R,W> synchWriteAndReadEvery(TimeDuration period)
period - minimum time between read notifications
@Deprecated public PV<R,W> asynchWriteAndReadEvery(TimeDuration period)
period - minimum time between read notifications
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||