apache / apache/rocketmq

[Enhancement] Extract validate and build message property methods out of sendMessageActivity into a common util class

Open
#10,163 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Java
Stars
22.6k
Forks
12k
Avg merge
2d 20h
Merged PRs (30d)
26

Description

### Before Creating the Enhancement Request

- [x] I have confirmed that this should be classified as an enhancement rather than a bug/feature.

### Summary

Extract validate and build message property methods out of sendMessageActivity into a common util class so that it can be used by other modules.

### Motivation

Extract validate and build message property methods out of sendMessageActivity into a common util class so that it can be used by other modules.

### Describe the Solution You'd Like

Change method signatures from protected to public static and extract them into a common util class so that it can be used by other modules.

### Describe Alternatives You've Considered

No alternative.

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating sendMessageActivity and its validate and build message property methods, then inspect how other modules could call them. Extract the methods into a common utility with public static signatures, update existing references, and run the relevant existing tests to verify behavior is unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.