Package io.getstream.cloud
Class CloudFeed
- java.lang.Object
-
- io.getstream.cloud.CloudFeed
-
- Direct Known Subclasses:
CloudAggregatedFeed
,CloudFlatFeed
,CloudNotificationFeed
public class CloudFeed extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java8.util.concurrent.CompletableFuture<java.util.List<Activity>>
addActivities(Activity... activities)
java8.util.concurrent.CompletableFuture<java.util.List<Activity>>
addActivities(java.lang.Iterable<Activity> activities)
java8.util.concurrent.CompletableFuture<Activity>
addActivity(Activity activity)
<T> java8.util.concurrent.CompletableFuture<java.util.List<T>>
addCustomActivities(java.lang.Iterable<T> activities)
<T> java8.util.concurrent.CompletableFuture<java.util.List<T>>
addCustomActivities(T... activities)
<T> java8.util.concurrent.CompletableFuture<T>
addCustomActivity(T activity)
java8.util.concurrent.CompletableFuture<java.lang.Void>
follow(CloudFlatFeed feed)
java8.util.concurrent.CompletableFuture<java.lang.Void>
follow(CloudFlatFeed feed, int activityCopyLimit)
protected CloudClient
getClient()
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowed(FeedID... feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowed(Limit limit, FeedID... feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowed(Limit limit, Offset offset, FeedID... feeds)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowed(Limit limit, Offset offset, java.lang.Iterable<FeedID> feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowed(Limit limit, java.lang.Iterable<FeedID> feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowed(Offset offset, FeedID... feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowed(Offset offset, java.lang.Iterable<FeedID> feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowed(java.lang.Iterable<FeedID> feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowers(FeedID... feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowers(Limit limit, FeedID... feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowers(Limit limit, Offset offset, FeedID... feeds)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowers(Limit limit, Offset offset, java.lang.Iterable<FeedID> feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowers(Limit limit, java.lang.Iterable<FeedID> feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowers(Offset offset, FeedID... feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowers(Offset offset, java.lang.Iterable<FeedID> feedIDs)
java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>>
getFollowers(java.lang.Iterable<FeedID> feedIDs)
FeedID
getID()
java.lang.String
getSlug()
java.lang.String
getUserID()
java8.util.concurrent.CompletableFuture<java.lang.Void>
removeActivityByForeignID(java.lang.String foreignID)
java8.util.concurrent.CompletableFuture<java.lang.Void>
removeActivityByID(java.lang.String id)
java8.util.concurrent.CompletableFuture<ChannelSubscription>
subscribe(RealtimeMessageCallback messageCallback)
java8.util.concurrent.CompletableFuture<java.lang.Void>
unfollow(CloudFlatFeed feed)
java8.util.concurrent.CompletableFuture<java.lang.Void>
unfollow(CloudFlatFeed feed, KeepHistory keepHistory)
-
-
-
Method Detail
-
getClient
protected final CloudClient getClient()
-
subscribe
public final java8.util.concurrent.CompletableFuture<ChannelSubscription> subscribe(RealtimeMessageCallback messageCallback)
-
getID
public final FeedID getID()
-
getSlug
public final java.lang.String getSlug()
-
getUserID
public final java.lang.String getUserID()
-
addActivity
public final java8.util.concurrent.CompletableFuture<Activity> addActivity(Activity activity) throws StreamException
- Throws:
StreamException
-
addCustomActivity
public final <T> java8.util.concurrent.CompletableFuture<T> addCustomActivity(T activity) throws StreamException
- Throws:
StreamException
-
addActivities
public final java8.util.concurrent.CompletableFuture<java.util.List<Activity>> addActivities(java.lang.Iterable<Activity> activities) throws StreamException
- Throws:
StreamException
-
addCustomActivities
public final <T> java8.util.concurrent.CompletableFuture<java.util.List<T>> addCustomActivities(java.lang.Iterable<T> activities) throws StreamException
- Throws:
StreamException
-
addActivities
public final java8.util.concurrent.CompletableFuture<java.util.List<Activity>> addActivities(Activity... activities) throws StreamException
- Throws:
StreamException
-
addCustomActivities
public final <T> java8.util.concurrent.CompletableFuture<java.util.List<T>> addCustomActivities(T... activities) throws StreamException
- Throws:
StreamException
-
removeActivityByID
public final java8.util.concurrent.CompletableFuture<java.lang.Void> removeActivityByID(java.lang.String id) throws StreamException
- Throws:
StreamException
-
removeActivityByForeignID
public final java8.util.concurrent.CompletableFuture<java.lang.Void> removeActivityByForeignID(java.lang.String foreignID) throws StreamException
- Throws:
StreamException
-
follow
public final java8.util.concurrent.CompletableFuture<java.lang.Void> follow(CloudFlatFeed feed) throws StreamException
- Throws:
StreamException
-
follow
public final java8.util.concurrent.CompletableFuture<java.lang.Void> follow(CloudFlatFeed feed, int activityCopyLimit) throws StreamException
- Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowers(java.lang.Iterable<FeedID> feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowers(FeedID... feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowers(Limit limit, java.lang.Iterable<FeedID> feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowers(Limit limit, FeedID... feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowers(Offset offset, java.lang.Iterable<FeedID> feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowers(Offset offset, FeedID... feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowers(Limit limit, Offset offset, java.lang.Iterable<FeedID> feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowers(Limit limit, Offset offset, FeedID... feeds) throws StreamException
- Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowed(java.lang.Iterable<FeedID> feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowed(FeedID... feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowed(Limit limit, java.lang.Iterable<FeedID> feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowed(Limit limit, FeedID... feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowed(Offset offset, java.lang.Iterable<FeedID> feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowed(Offset offset, FeedID... feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowed(Limit limit, Offset offset, java.lang.Iterable<FeedID> feedIDs) throws StreamException
- Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<java.util.List<FollowRelation>> getFollowed(Limit limit, Offset offset, FeedID... feeds) throws StreamException
- Throws:
StreamException
-
unfollow
public final java8.util.concurrent.CompletableFuture<java.lang.Void> unfollow(CloudFlatFeed feed) throws StreamException
- Throws:
StreamException
-
unfollow
public final java8.util.concurrent.CompletableFuture<java.lang.Void> unfollow(CloudFlatFeed feed, KeepHistory keepHistory) throws StreamException
- Throws:
StreamException
-
-