Skip to content

Commit d6c146b

Browse files
committed
Make ContainerProperties constants public
- enable `@value` in javadocs
1 parent a512572 commit d6c146b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerProperties.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ public enum AckMode {
9292

9393
}
9494

95-
private static final long DEFAULT_POLL_TIMEOUT = 1000L;
95+
public static final long DEFAULT_POLL_TIMEOUT = 1000L;
9696

97-
private static final int DEFAULT_SHUTDOWN_TIMEOUT = 10000;
97+
public static final int DEFAULT_SHUTDOWN_TIMEOUT = 10000;
9898

99-
private static final int DEFAULT_MONITOR_INTERVAL = 30;
99+
public static final int DEFAULT_MONITOR_INTERVAL = 30;
100100

101-
private static final float DEFAULT_NO_POLL_THRESHOLD = 3f;
101+
public static final float DEFAULT_NO_POLL_THRESHOLD = 3f;
102102

103103
/**
104104
* Topic names.
@@ -297,7 +297,7 @@ public void setConsumerTaskExecutor(AsyncListenableTaskExecutor consumerTaskExec
297297
/**
298298
* Set the timeout for shutting down the container. This is the maximum amount of
299299
* time that the invocation to {@code #stop(Runnable)} will block for, before
300-
* returning.
300+
* returning; default {@value #DEFAULT_SHUTDOWN_TIMEOUT}.
301301
* @param shutdownTimeout the shutdown timeout.
302302
*/
303303
public void setShutdownTimeout(long shutdownTimeout) {

0 commit comments

Comments
 (0)