Skip to content

Add MAXWORK lifecycle to final lifecycle states#3642

Open
FineAndDandy wants to merge 2 commits into
integrationfrom
bugfix/3639
Open

Add MAXWORK lifecycle to final lifecycle states#3642
FineAndDandy wants to merge 2 commits into
integrationfrom
bugfix/3639

Conversation

@FineAndDandy

Copy link
Copy Markdown
Collaborator

No description provided.

public boolean isLifecycleFinal() {
return Lifecycle.CLOSED == lifecycle || Lifecycle.CANCELLED == lifecycle || Lifecycle.MAXRESULTS == lifecycle || Lifecycle.NEXTTIMEOUT == lifecycle
|| Lifecycle.TIMEOUT == lifecycle || Lifecycle.SHUTDOWN == lifecycle;
return Lifecycle.CLOSED == lifecycle || Lifecycle.CANCELLED == lifecycle || Lifecycle.MAXRESULTS == lifecycle || Lifecycle.MAXWORK == lifecycle

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point we should disable the formatter and have something like

// @formatter:off
return Lifecycle.CLOSED ||
           Lifecycle.CANCELLED ||
...
// @formatter:on

public class BaseQueryMetricTest {

static Stream<BaseQueryMetric.Lifecycle> finalStates() {
return Stream.of(BaseQueryMetric.Lifecycle.CANCELLED, BaseQueryMetric.Lifecycle.MAXRESULTS, BaseQueryMetric.Lifecycle.MAXWORK,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static imorts?

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.

3 participants