You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/src/main/asciidoc/spring-integration-storage.adoc
+2
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,8 @@ public MessageSource<InputStream> streamingAdapter(Storage gcs) {
74
74
}
75
75
----
76
76
77
+
If you would like to process the files in your bucket in a specific order, you may pass in a `Comparator<BlobInfo>` to the constructor `GcsStreamingMessageSource` to sort the files being processed.
78
+
77
79
==== Outbound channel adapter
78
80
79
81
The outbound channel adapter allows files to be written to Google Cloud Storage.
Copy file name to clipboardexpand all lines: spring-cloud-gcp-storage/src/main/java/org/springframework/cloud/gcp/storage/integration/inbound/GcsStreamingMessageSource.java
+8
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,14 @@ public GcsStreamingMessageSource(RemoteFileTemplate<BlobInfo> template) {
44
44
this(template, null);
45
45
}
46
46
47
+
/**
48
+
* Creates a {@link GcsStreamingMessageSource} with a {@code comparator} which controls the order
49
+
* that files are processed in.
50
+
* @param template template making remote file calls to Google Cloud Storage
51
+
* @param comparator defines the order that files should be processed based on {@link BlobInfo}.
Copy file name to clipboardexpand all lines: spring-cloud-gcp-storage/src/test/java/org/springframework/cloud/gcp/storage/integration/inbound/GcsStreamingMessageSourceTests.java
0 commit comments