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

ARTEMIS-3309 Add a parameter to limit messages to move or transfer #3590

Closed
wants to merge 1 commit into from

Conversation

brusdev
Copy link
Member

@brusdev brusdev commented May 20, 2021

No description provided.

@brusdev brusdev force-pushed the limit_move_messages branch 3 times, most recently from 8feab58 to 8002182 Compare May 20, 2021 14:26
@@ -105,10 +105,207 @@
@Option(name = "--target-topic", description = "Destination to be used. It can be prefixed with queue:// or topic:// and can be an FQQN in the form of <address>::<queue>. (Default: queue://TEST)")
String targetTopic;

boolean isCopy() {
@Option(name = "--max-count", description = "The maximum number of messages to transfer.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make this consistent to ./artemis consumer... so this would come as --message-count ?

Can you check others...

if you want to expand towards those options.. isn't this something you could share a common base class with consumer?

Copy link
Member Author

Choose a reason for hiding this comment

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

The max-count parameter has a different name from message-count because it has a different semantic. The first one defines the maximum number of messages to transfer while the second one would define the exact number of messages to transfer waiting if the available messages are less than the message-count value (as the consumer does).

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems pretty much the same to me.

./artemis consumer --message-count means.. the name of messages to consume...

While

./artemis transfer --message-count would mean the maximum number of messages to transfer.

it would keep CLI clean. things would get easier to remember when you move from one tool to another.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, I have just pushed a commit to fix the parameter name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants