Interface DatafeedLoop

All Known Subinterfaces:
DatahoseLoop
All Known Implementing Classes:
AbstractAckIdEventLoop, DatafeedLoopV1, DatafeedLoopV2, DatahoseLoopImpl

@API(status=STABLE) public interface DatafeedLoop
Interface definition for a loop service to be used for handling the datafeed API.
  • Method Details

    • start

      void start() throws AuthUnauthorizedException, com.symphony.bdk.http.api.ApiException
      Start the datafeed events service
      Throws:
      AuthUnauthorizedException
      com.symphony.bdk.http.api.ApiException
    • stop

      void stop()
      Stop the datafeed events service. The datafeed service will be stopped after a small delay to finish the last read datafeed call.
    • subscribe

      void subscribe(RealTimeEventListener listener)
      The bot subscribes to a RealTimeEventListener
      Parameters:
      listener - a Datafeed event listener to be subscribed
    • unsubscribe

      void unsubscribe(RealTimeEventListener listener)
      The bot unsubscribes to a RealTimeEventListener
      Parameters:
      listener - a Datafeed event listener to be unsubscribed
    • lastPullTimestamp

      long lastPullTimestamp()
      The timestamp of the last successful pulling
      Returns:
      timestamp value in long