|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2018 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
27 | 27 | * A {@link JmsListenerContainerFactory} implementation to build a regular
|
28 | 28 | * {@link DefaultMessageListenerContainer}.
|
29 | 29 | *
|
30 |
| - * <p>This should be the default for most users and a good transition paths |
31 |
| - * for those that are used to build such container definition manually. |
| 30 | + * <p>This should be the default for most users and a good transition path |
| 31 | + * for those who are used to building such a container definition manually. |
32 | 32 | *
|
33 | 33 | * @author Stephane Nicoll
|
34 | 34 | * @since 4.1
|
@@ -67,63 +67,63 @@ public class DefaultJmsListenerContainerFactory
|
67 | 67 | /**
|
68 | 68 | * @see DefaultMessageListenerContainer#setTaskExecutor
|
69 | 69 | */
|
70 |
| - public void setTaskExecutor(Executor taskExecutor) { |
| 70 | + public void setTaskExecutor(@Nullable Executor taskExecutor) { |
71 | 71 | this.taskExecutor = taskExecutor;
|
72 | 72 | }
|
73 | 73 |
|
74 | 74 | /**
|
75 | 75 | * @see DefaultMessageListenerContainer#setTransactionManager
|
76 | 76 | */
|
77 |
| - public void setTransactionManager(PlatformTransactionManager transactionManager) { |
| 77 | + public void setTransactionManager(@Nullable PlatformTransactionManager transactionManager) { |
78 | 78 | this.transactionManager = transactionManager;
|
79 | 79 | }
|
80 | 80 |
|
81 | 81 | /**
|
82 | 82 | * @see DefaultMessageListenerContainer#setCacheLevel
|
83 | 83 | */
|
84 |
| - public void setCacheLevel(Integer cacheLevel) { |
| 84 | + public void setCacheLevel(@Nullable Integer cacheLevel) { |
85 | 85 | this.cacheLevel = cacheLevel;
|
86 | 86 | }
|
87 | 87 |
|
88 | 88 | /**
|
89 | 89 | * @see DefaultMessageListenerContainer#setCacheLevelName
|
90 | 90 | */
|
91 |
| - public void setCacheLevelName(String cacheLevelName) { |
| 91 | + public void setCacheLevelName(@Nullable String cacheLevelName) { |
92 | 92 | this.cacheLevelName = cacheLevelName;
|
93 | 93 | }
|
94 | 94 |
|
95 | 95 | /**
|
96 | 96 | * @see DefaultMessageListenerContainer#setConcurrency
|
97 | 97 | */
|
98 |
| - public void setConcurrency(String concurrency) { |
| 98 | + public void setConcurrency(@Nullable String concurrency) { |
99 | 99 | this.concurrency = concurrency;
|
100 | 100 | }
|
101 | 101 |
|
102 | 102 | /**
|
103 | 103 | * @see DefaultMessageListenerContainer#setMaxMessagesPerTask
|
104 | 104 | */
|
105 |
| - public void setMaxMessagesPerTask(Integer maxMessagesPerTask) { |
| 105 | + public void setMaxMessagesPerTask(@Nullable Integer maxMessagesPerTask) { |
106 | 106 | this.maxMessagesPerTask = maxMessagesPerTask;
|
107 | 107 | }
|
108 | 108 |
|
109 | 109 | /**
|
110 | 110 | * @see DefaultMessageListenerContainer#setReceiveTimeout
|
111 | 111 | */
|
112 |
| - public void setReceiveTimeout(Long receiveTimeout) { |
| 112 | + public void setReceiveTimeout(@Nullable Long receiveTimeout) { |
113 | 113 | this.receiveTimeout = receiveTimeout;
|
114 | 114 | }
|
115 | 115 |
|
116 | 116 | /**
|
117 | 117 | * @see DefaultMessageListenerContainer#setRecoveryInterval
|
118 | 118 | */
|
119 |
| - public void setRecoveryInterval(Long recoveryInterval) { |
| 119 | + public void setRecoveryInterval(@Nullable Long recoveryInterval) { |
120 | 120 | this.recoveryInterval = recoveryInterval;
|
121 | 121 | }
|
122 | 122 |
|
123 | 123 | /**
|
124 | 124 | * @see DefaultMessageListenerContainer#setBackOff
|
125 | 125 | */
|
126 |
| - public void setBackOff(BackOff backOff) { |
| 126 | + public void setBackOff(@Nullable BackOff backOff) { |
127 | 127 | this.backOff = backOff;
|
128 | 128 | }
|
129 | 129 |
|
|
0 commit comments