Skip to content

DATAMONGO-1480 - Add support for noCursorTimeout in Query. #390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Sep 13, 2016

We now allow setting noCursorTimeout for queries using Query and @Meta.

Query query = new Query().noCursorTimeout();

and

interface PersonRepository extends CrudRepository<Person, String> {

    @Meta(noCursorTimeout = true)
    Iterable<Person> findBy();

    @Meta(noCursorTimeout = true)
    Stream<Person> streamBy();
}

Related ticket: DATAMONGO-1480

mp911de and others added 3 commits October 6, 2016 09:51
We now allow setting noCursorTimeout for queries using `Query` and `@Meta`.

Query query = new Query().noCursorTimeout();

and

interface PersonRepository extends CrudRepository<Person, String> {

    @meta(noCursorTimeout = true)
    Iterable<Person> findBy();

    @meta(noCursorTimeout = true)
    Stream<Person> streamBy();
}
Opened up the Meta attributes to now allowing usage of more than one cursor option via dedicated enum.

new Query().noCursorTimeout();

and

interface PersonRepository extends CrudRepository<Person, String> {

    @meta(flags = {CursorOptions.NO_TIMEOUT})
    Iterable<Person> findBy();
}
christophstrobl pushed a commit that referenced this pull request Oct 24, 2016
We now allow setting noCursorTimeout for queries using `Query` and `@Meta`.

Query query = new Query().noCursorTimeout();

and

interface PersonRepository extends CrudRepository<Person, String> {

    @meta(noCursorTimeout = true)
    Iterable<Person> findBy();

    @meta(noCursorTimeout = true)
    Stream<Person> streamBy();
}

Original Pull Request: #390
christophstrobl added a commit that referenced this pull request Oct 24, 2016
Opened up Meta attributes to now allowing usage of more than one cursor option via dedicated enum.

new Query().noCursorTimeout();

and

interface PersonRepository extends CrudRepository<Person, String> {

    @meta(flags = {CursorOptions.NO_TIMEOUT})
    Iterable<Person> findBy();
}

Original Pull Request: #390
@christophstrobl christophstrobl deleted the issue/DATAMONGO-1480 branch October 24, 2016 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants