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 Summary
Modifier and TypeMethodDescriptionlong
The timestamp of the last successful pullingvoid
start()
Start the datafeed events servicevoid
stop()
Stop the datafeed events service.void
subscribe
(RealTimeEventListener listener) The bot subscribes to aRealTimeEventListener
void
unsubscribe
(RealTimeEventListener listener) The bot unsubscribes to aRealTimeEventListener
-
Method Details
-
start
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
The bot subscribes to aRealTimeEventListener
- Parameters:
listener
- a Datafeed event listener to be subscribed
-
unsubscribe
The bot unsubscribes to aRealTimeEventListener
- Parameters:
listener
- a Datafeed event listener to be unsubscribed
-
lastPullTimestamp
long lastPullTimestamp()The timestamp of the last successful pulling- Returns:
- timestamp value in long
-