From 4465ed981942564be24709dd14c5208be0d4de15 Mon Sep 17 00:00:00 2001 From: Christoph Strobl Date: Tue, 17 Mar 2020 12:23:06 +0100 Subject: [PATCH] DATAMONGO-2445 - Deprecate ReactiveGridFsOperations using AsyncInputStream. Methods using AsyncInputStream will be removed in 3.0. Please use the ones accepting a Publisher. Original pull request: #843. --- .../data/mongodb/gridfs/ReactiveGridFsOperations.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsOperations.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsOperations.java index 9170da7cc..75702d2e2 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsOperations.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsOperations.java @@ -111,7 +111,10 @@ public interface ReactiveGridFsOperations { * @param metadata can be {@literal null} * @return a {@link Mono} emitting the {@link ObjectId} of the {@link com.mongodb.client.gridfs.model.GridFSFile} just * created. + * @deprecated since 2.2.6. Will be removed in 3.0. Please use {@link #store(Publisher, String, String, Object)} + * instead. */ + @Deprecated Mono store(AsyncInputStream content, @Nullable String filename, @Nullable String contentType, @Nullable Object metadata); @@ -151,7 +154,10 @@ public interface ReactiveGridFsOperations { * @param metadata can be {@literal null}. * @return a {@link Mono} emitting the {@link ObjectId} of the {@link com.mongodb.client.gridfs.model.GridFSFile} just * created. + * @deprecated since 2.2.6. Will be removed in 3.0. Please use {@link #store(Publisher, String, String, Document)} + * instead. */ + @Deprecated Mono store(AsyncInputStream content, @Nullable String filename, @Nullable String contentType, @Nullable Document metadata);