131
131
* @see SimpleMessageListenerContainer
132
132
* @see org.springframework.jms.listener.endpoint.JmsMessageEndpointManager
133
133
*/
134
- public abstract class AbstractMessageListenerContainer
135
- extends AbstractJmsListeningContainer implements MessageListenerContainer {
134
+ public abstract class AbstractMessageListenerContainer extends AbstractJmsListeningContainer
135
+ implements MessageListenerContainer {
136
136
137
137
private static final Method createSharedConsumerMethod = ClassUtils .getMethodIfAvailable (
138
138
Session .class , "createSharedConsumer" , Topic .class , String .class , String .class );
@@ -354,6 +354,7 @@ public boolean isSubscriptionDurable() {
354
354
* <p>Only makes sense when listening to a topic (pub-sub domain),
355
355
* therefore this method switches the "pubSubDomain" flag as well.
356
356
* <p><b>Requires a JMS 2.0 compatible message broker.</b>
357
+ * @since 4.1
357
358
* @see #setSubscriptionName
358
359
* @see #setSubscriptionDurable
359
360
* @see #setPubSubDomain
@@ -367,6 +368,7 @@ public void setSubscriptionShared(boolean subscriptionShared) {
367
368
368
369
/**
369
370
* Return whether to make the subscription shared.
371
+ * @since 4.1
370
372
*/
371
373
public boolean isSubscriptionShared () {
372
374
return this .subscriptionShared ;
@@ -380,6 +382,7 @@ public boolean isSubscriptionShared() {
380
382
* <p>Note: Only 1 concurrent consumer (which is the default of this
381
383
* message listener container) is allowed for each subscription,
382
384
* except for a shared subscription (which requires JMS 2.0).
385
+ * @since 4.1
383
386
* @see #setPubSubDomain
384
387
* @see #setSubscriptionDurable
385
388
* @see #setSubscriptionShared
@@ -390,6 +393,10 @@ public void setSubscriptionName(String subscriptionName) {
390
393
this .subscriptionName = subscriptionName ;
391
394
}
392
395
396
+ /**
397
+ * Return the name of a subscription to create, if any.
398
+ * @since 4.1
399
+ */
393
400
public String getSubscriptionName () {
394
401
return this .subscriptionName ;
395
402
}
@@ -423,6 +430,7 @@ public String getDurableSubscriptionName() {
423
430
/**
424
431
* Set whether to inhibit the delivery of messages published by its own connection.
425
432
* Default is "false".
433
+ * @since 4.1
426
434
* @see javax.jms.Session#createConsumer(javax.jms.Destination, String, boolean)
427
435
*/
428
436
public void setPubSubNoLocal (boolean pubSubNoLocal ) {
@@ -431,13 +439,15 @@ public void setPubSubNoLocal(boolean pubSubNoLocal) {
431
439
432
440
/**
433
441
* Return whether to inhibit the delivery of messages published by its own connection.
442
+ * @since 4.1
434
443
*/
435
444
public boolean isPubSubNoLocal () {
436
445
return this .pubSubNoLocal ;
437
446
}
438
447
439
448
/**
440
449
* Set the {@link MessageConverter} strategy for converting JMS Messages.
450
+ * @since 4.1
441
451
*/
442
452
public void setMessageConverter (MessageConverter messageConverter ) {
443
453
this .messageConverter = messageConverter ;
@@ -477,6 +487,7 @@ public void setErrorHandler(ErrorHandler errorHandler) {
477
487
/**
478
488
* Return the ErrorHandler to be invoked in case of any uncaught exceptions thrown
479
489
* while processing a Message.
490
+ * @since 4.1
480
491
*/
481
492
public ErrorHandler getErrorHandler () {
482
493
return this .errorHandler ;
0 commit comments