Skip to content

Commit 40f76f0

Browse files
committed
Make ContainerProperties constants public
- enable `@value` in javadocs
1 parent 35b0bbc commit 40f76f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: spring-kafka/src/main/java/org/springframework/kafka/listener/config/ContainerProperties.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
*/
4747
public class ContainerProperties {
4848

49-
private static final long DEFAULT_POLL_TIMEOUT = 1000L;
49+
public static final long DEFAULT_POLL_TIMEOUT = 1000L;
5050

51-
private static final int DEFAULT_SHUTDOWN_TIMEOUT = 10000;
51+
public static final int DEFAULT_SHUTDOWN_TIMEOUT = 10000;
5252

53-
private static final int DEFAULT_MONITOR_INTERVAL = 30;
53+
public static final int DEFAULT_MONITOR_INTERVAL = 30;
5454

55-
private static final float DEFAULT_NO_POLL_THRESHOLD = 3f;
55+
public static final float DEFAULT_NO_POLL_THRESHOLD = 3f;
5656

5757
/**
5858
* Topic names.
@@ -270,7 +270,7 @@ public void setConsumerTaskExecutor(AsyncListenableTaskExecutor consumerTaskExec
270270
/**
271271
* Set the timeout for shutting down the container. This is the maximum amount of
272272
* time that the invocation to {@code #stop(Runnable)} will block for, before
273-
* returning.
273+
* returning; default {@value #DEFAULT_SHUTDOWN_TIMEOUT}.
274274
* @param shutdownTimeout the shutdown timeout.
275275
*/
276276
public void setShutdownTimeout(long shutdownTimeout) {

0 commit comments

Comments
 (0)