Skip to content
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

Add Annotation configuration support for Continuous Queries [DATAGEODE-38] #89

Closed
spring-projects-issues opened this issue Aug 18, 2017 · 0 comments
Assignees
Labels
in: configuration Issues with configuration in: cq Continuous Queries type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link

John Blum opened DATAGEODE-38 and commented

After building an example (CQ with JavaConfig) in the Spring GemFire Examples project showing how to configure SDG's Continuous Queries infrastructure support in JavaConfig, I realized that I could add additional support in thew new Annotation configuration model to simplify the setup and configuration of registers CQs and Listeners/callbacks that process CQ events.

Essentially, I will introduce 2 new Annotations, @EnableContinuousQueries to enable the SDG CQ infrastructure along with @ContinuousQuery.

@ContinuousQuery will be a POJO method-level annotation meant to defined the CQ query and handler method that should be called back upon receiving a CQ event for that particular query.

For example...

class MyApplicationContinuousQueriesAndHandlers {

  @ContinuousQuery(query = "SELECT * FROM /Orders o WHERE o.total > 1000")
   public void handleExpensiveOrders(CqEvent event) {
       ...
    }

The user can enable CQ using the @EnableContinuousQueries annotation, as stated above, like so...

@Configuration
@EnableContinuousQueries
class ApplicationConfiguration {
...
}

This will be very similar to the core Spring Framework's "Annotation driven listener endpoints"


No further details from DATAGEODE-38

@spring-projects-issues spring-projects-issues added in: configuration Issues with configuration type: enhancement A general enhancement in: cq Continuous Queries labels Dec 31, 2020
@spring-projects-issues spring-projects-issues added this to the 2.0 GA (Kay) milestone Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: configuration Issues with configuration in: cq Continuous Queries type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants