Interface DatahoseLoop
- All Superinterfaces:
DatafeedLoop
- All Known Implementing Classes:
DatahoseLoopImpl
Interface definition for a loop service to be used for handling the datahose API.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
start()
Start the datahose events servicevoid
stop()
Stop the datahose events service.void
subscribe
(RealTimeEventListener listener) The bot subscribes to aRealTimeEventListener
void
unsubscribe
(RealTimeEventListener listener) The bot unsubscribes to aRealTimeEventListener
Methods inherited from interface com.symphony.bdk.core.service.datafeed.DatafeedLoop
lastPullTimestamp
-
Method Details
-
start
Start the datahose events service- Specified by:
start
in interfaceDatafeedLoop
- Throws:
AuthUnauthorizedException
com.symphony.bdk.http.api.ApiException
-
stop
void stop()Stop the datahose events service. The datahose service will be stopped after a small delay to finish the last read datahose call.- Specified by:
stop
in interfaceDatafeedLoop
-
subscribe
The bot subscribes to aRealTimeEventListener
- Specified by:
subscribe
in interfaceDatafeedLoop
- Parameters:
listener
- a Datafeed event listener to be subscribed
-
unsubscribe
The bot unsubscribes to aRealTimeEventListener
- Specified by:
unsubscribe
in interfaceDatafeedLoop
- Parameters:
listener
- a Datafeed event listener to be unsubscribed
-