You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java-dynamic-sqs-listener-core/src/main/java/com/jashmore/sqs/container/SimpleMessageListenerContainer.java
* <p>This identifier must be unique across all other containers so that it can be uniquely obtained to start
30
-
* or stop specifically.
31
-
*
32
-
* @see QueueContainerService#startContainer(String) for usage of this identifier
33
-
* @see QueueContainerService#stopContainer(String) for usage of this identifier
34
-
*/
35
-
privatefinalStringidentifier;
36
25
37
26
/**
38
27
* The {@link MessageRetriever} that will be used in this container to obtain messages to process.
@@ -73,16 +62,13 @@ public class SimpleMessageListenerContainer implements MessageListenerContainer
73
62
* Container that can be built when the {@link MessageBroker} is using an {@link AsyncMessageRetriever}. This takes the {@link AsyncMessageRetriever} so
74
63
* that during the lifecycle of the spring container, it can be enabled and disabled at the same time that the {@link MessageBroker} is.
75
64
*
76
-
* @param identifier the unique identifier for this container
77
65
* @param messageRetriever the message retriever for this listener
78
66
* @param messageBroker the message broker that handles the processing of messages
79
67
* @param messageResolver the message resolver that will be used in this container
Copy file name to clipboardExpand all lines: java-dynamic-sqs-listener-core/src/test/java/com/jashmore/sqs/container/SimpleMessageListenerContainerTest.java
* Defines a {@link MessageListenerContainer} with a provided identifier that can be used by the {@link QueueContainerService} to start and stop them during
10
+
* execution.
11
+
*/
12
+
@Value
13
+
@NonFinal
14
+
@Builder
15
+
publicclassIdentifiableMessageListenerContainer {
16
+
/**
17
+
* The unique identifier for this container which should not be the same as any other container.
18
+
*
19
+
* <p>For the default implementations provided by the core Spring Starter the unique identifier is the URL for the queue
20
+
* and therefore it isn't possible two different methods call the same queue.
21
+
*/
22
+
privateStringidentifier;
23
+
/**
24
+
* The container that wraps a method and is identifiable by the {@link #identifier}.
Copy file name to clipboardExpand all lines: java-dynamic-sqs-listener-spring/java-dynamic-sqs-listener-spring-api/src/main/java/com/jashmore/sqs/spring/QueueWrapper.java
Copy file name to clipboardExpand all lines: java-dynamic-sqs-listener-spring/java-dynamic-sqs-listener-spring-starter/src/main/java/com/jashmore/sqs/spring/AbstractQueueAnnotationWrapper.java
Copy file name to clipboardExpand all lines: java-dynamic-sqs-listener-spring/java-dynamic-sqs-listener-spring-starter/src/main/java/com/jashmore/sqs/spring/DefaultQueueContainerService.java
Copy file name to clipboardExpand all lines: java-dynamic-sqs-listener-spring/java-dynamic-sqs-listener-spring-starter/src/main/java/com/jashmore/sqs/spring/config/QueueListenerConfiguration.java
0 commit comments