public interface StreamPersonalizedRepository
| Modifier and Type | Method and Description |
|---|---|
MetaResponse |
addMeta(PersonalizedFeed feed,
Serializable metaPayload)
"Certain objects such as user profiles, product details etc.
|
<T extends PersonalizedActivity> |
get(PersonalizedFeed feed,
Class<T> type,
FeedFilter filter)
Read a personalized feed.
|
<T extends Serializable> |
getInterest(PersonalizedFeed feed,
Class<T> type)
Read the taste/ endpoint.
|
<T extends PersonalizedActivity> List<T> get(PersonalizedFeed feed, Class<T> type, FeedFilter filter) throws IOException, StreamClientException
T - Type of the class to use to perform deserialization.feed - the feed you want to read fromtype - Since the personalized feed can be heavily customized, we need to know which class to use to perform deserialized.filter - Filter out the results.IOException - in case of network/socket exceptionsStreamClientException - in case of functional or server-side exceptionMetaResponse addMeta(PersonalizedFeed feed, Serializable metaPayload) throws IOException, StreamClientException
feed - The feed you want to enrich with meta-datametaPayload - The meta object can be customized by the customer. The method accepts any Serializable object.IOException - in case of network/socket exceptionsStreamClientException - in case of functional or server-side exception<T extends Serializable> List<T> getInterest(PersonalizedFeed feed, Class<T> type) throws IOException, StreamClientException
T - Type of the class to use to perform deserialization.feed - the feed you want to read fromtype - Since the personalized feed can be heavily customized, we need to know which class to use to perform deserialized.IOException - in case of network/socket exceptionsStreamClientException - in case of functional or server-side exceptionCopyright © 2017. All rights reserved.