Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public class QueueCheck extends CheckAbstract {
@Option(names = "--up", description = "Check that the queue exists and is not paused. This check is executed by default if there are no other checks.")
private boolean up;

@Option(names = "--browse", description = "Number of the messages to browse or -1 to check that the queue is browsable.")
@Option(names = "--browse", description = "Number of the messages to browse or -1 to browse at most 1 message only if it is immediately available (succeeding also if no messages are available).")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@brusdev Is there a default value? perhaps you could specify (default = X) on the description).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think so, at least not through the cli. You must pass the --consume value. If you don't, you'll get an error.
image

If you pass a value lower than -1, you'll get an error.
image

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I confirm there is no default value. @clebertsuconic are you suggesting adding a default value?

private Integer browse;

@Option(names = "--consume", description = "Number of the messages to consume or -1 to check that the queue is consumable.")
@Option(names = "--consume", description = "Number of the messages to consume or -1 to consume at most 1 message only if it is immediately available (succeeding also if no messages are available).")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here

private Integer consume;

@Option(names = "--produce", description = "Number of the messages to produce.")
Expand Down
Loading