Package io.getstream.core
Class Stream
- java.lang.Object
-
- io.getstream.core.Stream
-
public final class Stream extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Stream(java.lang.String key, java.net.URL baseURL, HTTPClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java8.util.concurrent.CompletableFuture<Response>
addActivities(Token token, FeedID feed, Activity... activityObjects)
java8.util.concurrent.CompletableFuture<Response>
addActivity(Token token, FeedID feed, Activity activity)
StreamAnalytics
analytics()
StreamBatch
batch()
StreamCollections
collections()
java8.util.concurrent.CompletableFuture<Response>
createUser(Token token, java.lang.String userID, Data userData, boolean getOrCreate)
java8.util.concurrent.CompletableFuture<Response>
deleteUser(Token token, java.lang.String id)
StreamFiles
files()
java8.util.concurrent.CompletableFuture<Response>
follow(Token token, Token targetToken, FeedID sourceFeed, FeedID targetFeed, int activityCopyLimit)
java8.util.concurrent.CompletableFuture<Response>
getActivities(Token token, FeedID feed, RequestOption... options)
java8.util.concurrent.CompletableFuture<Response>
getEnrichedActivities(Token token, FeedID feed, RequestOption... options)
java8.util.concurrent.CompletableFuture<Response>
getFollowed(Token token, FeedID feed, RequestOption... options)
java8.util.concurrent.CompletableFuture<Response>
getFollowers(Token token, FeedID feed, RequestOption... options)
java8.util.concurrent.CompletableFuture<Response>
getFollowStats(Token token, FeedID feed, java.lang.String[] followerSlugs, java.lang.String[] followingSlugs, RequestOption... options)
<T> T
getHTTPClientImplementation()
java8.util.concurrent.CompletableFuture<Response>
getUser(Token token, java.lang.String id, boolean withFollowCounts)
StreamImages
images()
java8.util.concurrent.CompletableFuture<OGData>
openGraph(Token token, java.net.URL targetURL)
StreamPersonalization
personalization()
StreamReactions
reactions()
java8.util.concurrent.CompletableFuture<Response>
removeActivityByForeignID(Token token, FeedID feed, java.lang.String foreignID)
java8.util.concurrent.CompletableFuture<Response>
removeActivityByID(Token token, FeedID feed, java.lang.String id)
java8.util.concurrent.CompletableFuture<Response>
unfollow(Token token, FeedID source, FeedID target, RequestOption... options)
java8.util.concurrent.CompletableFuture<java.util.List<Activity>>
updateActivitiesByForeignID(Token token, ActivityUpdate[] updates)
java8.util.concurrent.CompletableFuture<java.util.List<Activity>>
updateActivitiesByID(Token token, ActivityUpdate[] updates)
java8.util.concurrent.CompletableFuture<Activity>
updateActivityByForeignID(Token token, java.lang.String foreignID, java.util.Date timestamp, java.util.Map<java.lang.String,java.lang.Object> set, java.lang.String[] unset)
java8.util.concurrent.CompletableFuture<Activity>
updateActivityByID(Token token, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> set, java.lang.String[] unset)
java8.util.concurrent.CompletableFuture<Response>
updateActivityToTargets(Token token, FeedID feed, Activity activity, FeedID[] add, FeedID[] remove, FeedID[] replace)
java8.util.concurrent.CompletableFuture<Response>
updateUser(Token token, java.lang.String userID, Data userData)
-
-
-
Constructor Detail
-
Stream
public Stream(java.lang.String key, java.net.URL baseURL, HTTPClient httpClient)
-
-
Method Detail
-
batch
public StreamBatch batch()
-
collections
public StreamCollections collections()
-
personalization
public StreamPersonalization personalization()
-
analytics
public StreamAnalytics analytics()
-
reactions
public StreamReactions reactions()
-
files
public StreamFiles files()
-
images
public StreamImages images()
-
updateActivitiesByID
public java8.util.concurrent.CompletableFuture<java.util.List<Activity>> updateActivitiesByID(Token token, ActivityUpdate[] updates) throws StreamException
- Throws:
StreamException
-
updateActivityByID
public java8.util.concurrent.CompletableFuture<Activity> updateActivityByID(Token token, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> set, java.lang.String[] unset) throws StreamException
- Throws:
StreamException
-
updateActivitiesByForeignID
public java8.util.concurrent.CompletableFuture<java.util.List<Activity>> updateActivitiesByForeignID(Token token, ActivityUpdate[] updates) throws StreamException
- Throws:
StreamException
-
updateActivityByForeignID
public java8.util.concurrent.CompletableFuture<Activity> updateActivityByForeignID(Token token, java.lang.String foreignID, java.util.Date timestamp, java.util.Map<java.lang.String,java.lang.Object> set, java.lang.String[] unset) throws StreamException
- Throws:
StreamException
-
openGraph
public java8.util.concurrent.CompletableFuture<OGData> openGraph(Token token, java.net.URL targetURL) throws StreamException
- Throws:
StreamException
-
getHTTPClientImplementation
public <T> T getHTTPClientImplementation()
-
getActivities
public java8.util.concurrent.CompletableFuture<Response> getActivities(Token token, FeedID feed, RequestOption... options) throws StreamException
- Throws:
StreamException
-
getEnrichedActivities
public java8.util.concurrent.CompletableFuture<Response> getEnrichedActivities(Token token, FeedID feed, RequestOption... options) throws StreamException
- Throws:
StreamException
-
addActivity
public java8.util.concurrent.CompletableFuture<Response> addActivity(Token token, FeedID feed, Activity activity) throws StreamException
- Throws:
StreamException
-
addActivities
public java8.util.concurrent.CompletableFuture<Response> addActivities(Token token, FeedID feed, Activity... activityObjects) throws StreamException
- Throws:
StreamException
-
removeActivityByID
public java8.util.concurrent.CompletableFuture<Response> removeActivityByID(Token token, FeedID feed, java.lang.String id) throws StreamException
- Throws:
StreamException
-
removeActivityByForeignID
public java8.util.concurrent.CompletableFuture<Response> removeActivityByForeignID(Token token, FeedID feed, java.lang.String foreignID) throws StreamException
- Throws:
StreamException
-
follow
public java8.util.concurrent.CompletableFuture<Response> follow(Token token, Token targetToken, FeedID sourceFeed, FeedID targetFeed, int activityCopyLimit) throws StreamException
- Throws:
StreamException
-
getFollowers
public java8.util.concurrent.CompletableFuture<Response> getFollowers(Token token, FeedID feed, RequestOption... options) throws StreamException
- Throws:
StreamException
-
getFollowed
public java8.util.concurrent.CompletableFuture<Response> getFollowed(Token token, FeedID feed, RequestOption... options) throws StreamException
- Throws:
StreamException
-
unfollow
public java8.util.concurrent.CompletableFuture<Response> unfollow(Token token, FeedID source, FeedID target, RequestOption... options) throws StreamException
- Throws:
StreamException
-
getFollowStats
public java8.util.concurrent.CompletableFuture<Response> getFollowStats(Token token, FeedID feed, java.lang.String[] followerSlugs, java.lang.String[] followingSlugs, RequestOption... options) throws StreamException
- Throws:
StreamException
-
updateActivityToTargets
public java8.util.concurrent.CompletableFuture<Response> updateActivityToTargets(Token token, FeedID feed, Activity activity, FeedID[] add, FeedID[] remove, FeedID[] replace) throws StreamException
- Throws:
StreamException
-
getUser
public java8.util.concurrent.CompletableFuture<Response> getUser(Token token, java.lang.String id, boolean withFollowCounts) throws StreamException
- Throws:
StreamException
-
deleteUser
public java8.util.concurrent.CompletableFuture<Response> deleteUser(Token token, java.lang.String id) throws StreamException
- Throws:
StreamException
-
createUser
public java8.util.concurrent.CompletableFuture<Response> createUser(Token token, java.lang.String userID, Data userData, boolean getOrCreate) throws StreamException
- Throws:
StreamException
-
updateUser
public java8.util.concurrent.CompletableFuture<Response> updateUser(Token token, java.lang.String userID, Data userData) throws StreamException
- Throws:
StreamException
-
-