Class EpicsChannelPollerPublisher.Poller
java.lang.Object
ch.psi.wica.controlsystem.epics.poller.EpicsChannelPollerPublisher.Poller
- Enclosing class:
EpicsChannelPollerPublisher
Polls an EPICS channel.
-
Constructor Summary
ConstructorsConstructorDescriptionPoller
(ScheduledExecutorService executor, EpicsChannelPollerRequest requestObject, EpicsChannelValueGetter epicsChannelValueGetter, WicaChannelEventPublisher wicaChannelEventPublisher, EpicsChannelPollerStatistics statisticCollector) Creates a new instance. -
Method Summary
-
Constructor Details
-
Poller
public Poller(ScheduledExecutorService executor, EpicsChannelPollerRequest requestObject, EpicsChannelValueGetter epicsChannelValueGetter, WicaChannelEventPublisher wicaChannelEventPublisher, EpicsChannelPollerStatistics statisticCollector) Creates a new instance.- Parameters:
executor
- reference to an executor that will carry out the polling.requestObject
- object providing the polling request specification.epicsChannelValueGetter
- object which will get new channel values.wicaChannelEventPublisher
- reference to an object which will publish the result of each poll attempt.statisticCollector
- reference to an object which will collect poll statistics.
-
-
Method Details
-
isStarted
boolean isStarted() -
start
Starts polling the specified channel.- Parameters:
caChannel
- the channel.
-
cancel
void cancel()Cancels polling. -
pause
void pause()Pauses polling. -
resume
void resume()Resumes polling.
-