Skip to content

proposed changes#34

Merged
sigpwned merged 4 commits into
mainfrom
0.0.0-b11-SNAPSHOT
Oct 27, 2025
Merged

proposed changes#34
sigpwned merged 4 commits into
mainfrom
0.0.0-b11-SNAPSHOT

Conversation

@sigpwned

Copy link
Copy Markdown
Contributor

No description provided.

@sigpwned sigpwned requested a review from Copilot October 27, 2025 01:41

Copilot AI left a comment

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.

Pull Request Overview

This PR updates the project version from 0.0.0-b10 to 0.0.0-b11-SNAPSHOT and performs a significant code reorganization by moving worker classes from the io.aleph0.yap.messaging.core package to a new worker subpackage. The refactoring also introduces new abstractions and helper classes to support message processing workflows.

  • Version bumped to 0.0.0-b11-SNAPSHOT across all POM files
  • Worker classes moved to worker subpackages for better organization
  • New worker abstractions and utilities added for message processing patterns

Reviewed Changes

Copilot reviewed 38 out of 38 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
pom.xml files (multiple) Version updates from 0.0.0-b10 to 0.0.0-b11-SNAPSHOT
Java classes (multiple) Package reorganization moving worker classes to worker subpackages
Test classes (multiple) Import updates to reflect new worker package structure
SplitGateProcessorWorker.java Moved to worker package with enhanced implementation
New worker classes Added AcknowledgingProcessorWorker, AcknowledgingMessageBodyProcessorWorker, and others
New acknowledger classes Added Acknowledger interface, DefaultAcknowledger, and NopAcknowledger
MapMultiProcessorWorker.java New generic processor for one-to-many mappings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* mapping in the mapped message
* @param mappedBody the body of the mapped message, which is the result of the mapping operation
* and must be used as the body of the new mapped message
* @param acknwoledgeable The object to use to ack or nack the new message

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

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

Corrected spelling of 'acknwoledgeable' to 'acknowledgeable'.

Copilot uses AI. Check for mistakes.
* @return the new message
*/
protected Message<Y> newMappedMessage(String originalId, Map<String, String> originalAttributes,
X originalBody, Y mappedBody, Acknowledgeable acknwoledgeable) {

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

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

Corrected spelling of 'acknwoledgeable' to 'acknowledgeable'.

Copilot uses AI. Check for mistakes.
public void ack(AcknowledgementListener listener) {
final boolean updated = acked.compareAndSet(false, true);
if (updated) {
acknwoledgeable.ack(listener);

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

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

Corrected spelling of 'acknwoledgeable' to 'acknowledgeable'.

Copilot uses AI. Check for mistakes.
public void nack(AcknowledgementListener listener) {
final boolean updated = acked.compareAndSet(false, true);
if (updated) {
acknwoledgeable.nack(listener);

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

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

Corrected spelling of 'acknwoledgeable' to 'acknowledgeable'.

Copilot uses AI. Check for mistakes.
@Override
public void ack(AcknowledgementListener listener) {
final boolean updated = acknowledged.compareAndSet(false, true);
if (updated == true) {

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

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

The comparison updated == true is redundant. The variable updated is already a boolean, so the condition can be simplified to if (updated).

Copilot uses AI. Check for mistakes.
@Override
public void nack(AcknowledgementListener listener) {
final boolean updated = acknowledged.compareAndSet(false, true);
if (updated == true) {

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

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

The comparison updated == true is redundant. The variable updated is already a boolean, so the condition can be simplified to if (updated).

Suggested change
if (updated == true) {
if (updated) {

Copilot uses AI. Check for mistakes.
*/
@Override
public void close() throws InterruptedException, ExecutionException {
if (closed.compareAndSet(false, true) == true) {

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

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

The comparison with == true is redundant. The compareAndSet method already returns a boolean, so the condition can be simplified to if (closed.compareAndSet(false, true)).

Suggested change
if (closed.compareAndSet(false, true) == true) {
if (closed.compareAndSet(false, true)) {

Copilot uses AI. Check for mistakes.
sigpwned and others added 3 commits October 26, 2025 20:44
…worker/SplitGateProcessorWorker.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…worker/SplitGateProcessorWorker.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sigpwned sigpwned requested a review from Copilot October 27, 2025 02:58

Copilot AI left a comment

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.

Pull Request Overview

Copilot reviewed 43 out of 44 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sigpwned sigpwned merged commit 7b4af95 into main Oct 27, 2025
1 check passed
@sigpwned sigpwned deleted the 0.0.0-b11-SNAPSHOT branch October 27, 2025 03:00
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.

2 participants