|
95 | 95 | * <p>Note: When provided, this value will override the group id property |
96 | 96 | * in the consumer factory configuration, unless {@link #idIsGroup()} |
97 | 97 | * is set to false. |
| 98 | + * <p>SpEL {@code #{...}} and property place holders {@code ${...}} are supported. |
98 | 99 | * @return the {@code id} for the container managing for this endpoint. |
99 | 100 | * @see org.springframework.kafka.config.KafkaListenerEndpointRegistry#getListenerContainer(String) |
100 | 101 | */ |
|
111 | 112 | /** |
112 | 113 | * The topics for this listener. |
113 | 114 | * The entries can be 'topic name', 'property-placeholder keys' or 'expressions'. |
114 | | - * Expression must be resolved to the topic name. |
| 115 | + * An expression must be resolved to the topic name. |
115 | 116 | * Mutually exclusive with {@link #topicPattern()} and {@link #topicPartitions()}. |
116 | 117 | * @return the topic names or expressions (SpEL) to listen to. |
117 | 118 | */ |
|
120 | 121 | /** |
121 | 122 | * The topic pattern for this listener. |
122 | 123 | * The entries can be 'topic name', 'property-placeholder keys' or 'expressions'. |
123 | | - * Expression must be resolved to the topic pattern. |
| 124 | + * An expression must be resolved to the topic pattern. |
124 | 125 | * Mutually exclusive with {@link #topics()} and {@link #topicPartitions()}. |
125 | 126 | * @return the topic pattern or expression (SpEL). |
126 | 127 | */ |
|
138 | 139 | * with this value as its name, of type {@code Collection<MessageListenerContainer>}. |
139 | 140 | * This allows, for example, iteration over the collection to start/stop a subset |
140 | 141 | * of containers. |
| 142 | + * <p>SpEL {@code #{...}} and property place holders {@code ${...}} are supported. |
141 | 143 | * @return the bean name for the group. |
142 | 144 | */ |
143 | 145 | String containerGroup() default ""; |
144 | 146 |
|
145 | 147 | /** |
146 | | - * Set an {@link org.springframework.kafka.listener.KafkaListenerErrorHandler} to |
147 | | - * invoke if the listener method throws an exception. |
| 148 | + * Set an {@link org.springframework.kafka.listener.KafkaListenerErrorHandler} bean |
| 149 | + * name to invoke if the listener method throws an exception. |
148 | 150 | * @return the error handler. |
149 | 151 | * @since 1.3 |
150 | 152 | */ |
|
153 | 155 | /** |
154 | 156 | * Override the {@code group.id} property for the consumer factory with this value |
155 | 157 | * for this listener only. |
| 158 | + * <p>SpEL {@code #{...}} and property place holders {@code ${...}} are supported. |
156 | 159 | * @return the group id. |
157 | 160 | * @since 1.3 |
158 | 161 | */ |
|
171 | 174 | * When provided, overrides the client id property in the consumer factory |
172 | 175 | * configuration. A suffix ('-n') is added for each container instance to ensure |
173 | 176 | * uniqueness when concurrency is used. |
| 177 | + * <p>SpEL {@code #{...}} and property place holders {@code ${...}} are supported. |
174 | 178 | * @return the client id prefix. |
175 | 179 | * @since 2.1.1 |
176 | 180 | */ |
|
192 | 196 | * Override the container factory's {@code concurrency} setting for this listener. May |
193 | 197 | * be a property placeholder or SpEL expression that evaluates to a {@link Number}, in |
194 | 198 | * which case {@link Number#intValue()} is used to obtain the value. |
| 199 | + * <p>SpEL {@code #{...}} and property place holders {@code ${...}} are supported. |
195 | 200 | * @return the concurrency. |
196 | 201 | * @since 2.2 |
197 | 202 | */ |
|
202 | 207 | * be a property placeholder or SpEL expression that evaluates to a {@link Boolean} or |
203 | 208 | * a {@link String}, in which case the {@link Boolean#parseBoolean(String)} is used to |
204 | 209 | * obtain the value. |
| 210 | + * <p>SpEL {@code #{...}} and property place holders {@code ${...}} are supported. |
205 | 211 | * @return true to auto start, false to not auto start. |
206 | 212 | * @since 2.2 |
207 | 213 | */ |
|
0 commit comments