public class DataFeedClientImpl extends java.lang.Object implements DataFeedClient
Constructor and Description |
---|
DataFeedClientImpl(SymAuth symAuth,
SymphonyClientConfig config)
Init
|
DataFeedClientImpl(SymAuth symAuth,
SymphonyClientConfig config,
javax.ws.rs.client.Client httpClient)
If you need to override HttpClient.
|
Modifier and Type | Method and Description |
---|---|
org.symphonyoss.symphony.agent.model.Datafeed |
createDatafeed(ApiVersion apiVersion)
Create a datafeed to consume messages/events from
|
java.util.List<SymEvent> |
getEventsFromDatafeed(org.symphonyoss.symphony.agent.model.Datafeed datafeed)
This will return events from datafeed object through underlying blocking calls.
|
java.util.List<SymEvent> |
getEventsFromDatafeed(org.symphonyoss.symphony.agent.model.Datafeed datafeed,
int maxMessages)
This will return events from datafeed object through underlying blocking calls.
|
public DataFeedClientImpl(SymAuth symAuth, SymphonyClientConfig config)
symAuth
- Authorization model containing session and key tokensconfig
- Config containing the Agent URL used to access APIpublic DataFeedClientImpl(SymAuth symAuth, SymphonyClientConfig config, javax.ws.rs.client.Client httpClient)
symAuth
- Authorization model containing session and key tokensconfig
- Config containing the Agent URL used to access APIhttpClient
- Custom HTTP clientpublic org.symphonyoss.symphony.agent.model.Datafeed createDatafeed(ApiVersion apiVersion) throws DataFeedException
DataFeedClient
createDatafeed
in interface DataFeedClient
apiVersion
- ApiVersion
to use (V2, V4..)DataFeedException
- Caused by Symphony API callspublic java.util.List<SymEvent> getEventsFromDatafeed(org.symphonyoss.symphony.agent.model.Datafeed datafeed, int maxMessages) throws DataFeedException
DataFeedClient
getEventsFromDatafeed
in interface DataFeedClient
datafeed
- Datafeed object associated with BOT usermaxMessages
- maximum number of messages returned.DataFeedException
- Caused by Symphony API callspublic java.util.List<SymEvent> getEventsFromDatafeed(org.symphonyoss.symphony.agent.model.Datafeed datafeed) throws DataFeedException
DataFeedClient
getEventsFromDatafeed
in interface DataFeedClient
datafeed
- Datafeed object associated with BOT userDataFeedException
- Caused by Symphony API calls