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
However current Spring Data MongoDB version (4.0.5) doesn't contain ChangeStreamRequestOptions class where constructor accepts two parameters, only three arguments:
public ChangeStreamRequestOptions(@Nullable String databaseName, @Nullable String collectionName,
ChangeStreamOptions options) {
this(databaseName, collectionName, null, options);
}
public ChangeStreamRequestOptions(@Nullable String databaseName, @Nullable String collectionName,
@Nullable Duration maxAwaitTime, ChangeStreamOptions options) {
Assert.notNull(options, "Options must not be null");
this.collectionName = collectionName;
this.databaseName = databaseName;
this.maxAwaitTime = maxAwaitTime;
this.options = options;
}
Hi
Here's code snippet from official documentation(https://docs.spring.io/spring-data/mongodb/docs/current/reference/html/#change-streams):
However current Spring Data MongoDB version (4.0.5) doesn't contain ChangeStreamRequestOptions class where constructor accepts two parameters, only three arguments:
The code snippet below doesn't compile:
Subscription subscription = container.register(new ChangeStreamRequest<>(listener, options), User.class);
with error:
Cannot infer type arguments for ChangeStreamRequest<>
The text was updated successfully, but these errors were encountered: