Skip to content
Open
Show file tree
Hide file tree
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 @@ -25,6 +25,7 @@
* Used to indicate which pattern a target component implements.
*
* @author Artem Bilan
* @author Jiandong Ma
*
* @since 5.3
*/
Expand Down Expand Up @@ -84,6 +85,8 @@ public enum IntegrationPatternType { // NOSONAR Initialization circularity is us

control_bus(IntegrationPatternCategory.system_management),

message_store(IntegrationPatternCategory.system_management),

router(IntegrationPatternCategory.message_routing),

recipient_list_router(IntegrationPatternCategory.message_routing);
Expand Down Expand Up @@ -140,7 +143,9 @@ public enum IntegrationPatternCategory {
claim_check_in,
claim_check_out),

system_management(control_bus);
system_management(
control_bus,
message_store);

private final IntegrationPatternType[] patternTypes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

import org.jspecify.annotations.Nullable;

import org.springframework.integration.IntegrationPattern;
import org.springframework.integration.IntegrationPatternType;
import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.springframework.messaging.Message;

Expand All @@ -30,10 +32,11 @@
* @author Iwein Fuld
* @author Dave Syer
* @author Artem Bilan
* @author Jiandong Ma
*
* @since 2.0
*/
public interface MessageStore {
public interface MessageStore extends IntegrationPattern {

/**
* @param id The message identifier.
Expand Down Expand Up @@ -86,4 +89,9 @@ public interface MessageStore {
@ManagedAttribute
long getMessageCount();

@Override
default IntegrationPatternType getIntegrationPatternType() {
return IntegrationPatternType.message_store;
}

}