Class EpicsChannelPollerPublisher.Poller

java.lang.Object
ch.psi.wica.controlsystem.epics.poller.EpicsChannelPollerPublisher.Poller
Enclosing class:
EpicsChannelPollerPublisher

@ThreadSafe public static class EpicsChannelPollerPublisher.Poller extends Object
Polls an EPICS channel.
  • 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

      void start(org.epics.ca.Channel<Object> caChannel)
      Starts polling the specified channel.
      Parameters:
      caChannel - the channel.
    • cancel

      void cancel()
      Cancels polling.
    • pause

      void pause()
      Pauses polling.
    • resume

      void resume()
      Resumes polling.