Package io.getstream.core
Class StreamCollections
- java.lang.Object
-
- io.getstream.core.StreamCollections
-
public final class StreamCollections extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java8.util.concurrent.CompletableFuture<CollectionData>
add(Token token, java.lang.String userID, java.lang.String collection, CollectionData item)
java8.util.concurrent.CompletableFuture<java.lang.Void>
delete(Token token, java.lang.String collection, java.lang.String id)
java8.util.concurrent.CompletableFuture<java.lang.Void>
deleteMany(Token token, java.lang.String collection, java.lang.String... ids)
java8.util.concurrent.CompletableFuture<CollectionData>
get(Token token, java.lang.String collection, java.lang.String id)
java8.util.concurrent.CompletableFuture<java.util.List<CollectionData>>
select(Token token, java.lang.String collection, java.lang.String... ids)
java8.util.concurrent.CompletableFuture<CollectionData>
update(Token token, java.lang.String userID, java.lang.String collection, CollectionData item)
java8.util.concurrent.CompletableFuture<java.lang.Void>
upsert(Token token, java.lang.String collection, CollectionData... items)
-
-
-
Method Detail
-
add
public java8.util.concurrent.CompletableFuture<CollectionData> add(Token token, java.lang.String userID, java.lang.String collection, CollectionData item) throws StreamException
- Throws:
StreamException
-
update
public java8.util.concurrent.CompletableFuture<CollectionData> update(Token token, java.lang.String userID, java.lang.String collection, CollectionData item) throws StreamException
- Throws:
StreamException
-
upsert
public java8.util.concurrent.CompletableFuture<java.lang.Void> upsert(Token token, java.lang.String collection, CollectionData... items) throws StreamException
- Throws:
StreamException
-
get
public java8.util.concurrent.CompletableFuture<CollectionData> get(Token token, java.lang.String collection, java.lang.String id) throws StreamException
- Throws:
StreamException
-
select
public java8.util.concurrent.CompletableFuture<java.util.List<CollectionData>> select(Token token, java.lang.String collection, java.lang.String... ids) throws StreamException
- Throws:
StreamException
-
delete
public java8.util.concurrent.CompletableFuture<java.lang.Void> delete(Token token, java.lang.String collection, java.lang.String id) throws StreamException
- Throws:
StreamException
-
deleteMany
public java8.util.concurrent.CompletableFuture<java.lang.Void> deleteMany(Token token, java.lang.String collection, java.lang.String... ids) throws StreamException
- Throws:
StreamException
-
-