From 40f76f0809aa4b78e1dd6eb70c7552a198717a53 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Tue, 19 Jun 2018 10:01:31 -0400 Subject: [PATCH] Make ContainerProperties constants public - enable `@value` in javadocs --- .../kafka/listener/config/ContainerProperties.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/config/ContainerProperties.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/config/ContainerProperties.java index 35f1ce9d..3bd202a1 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/config/ContainerProperties.java +++ b/spring-kafka/src/main/java/org/springframework/kafka/listener/config/ContainerProperties.java @@ -46,13 +46,13 @@ import org.springframework.util.StringUtils; */ public class ContainerProperties { - private static final long DEFAULT_POLL_TIMEOUT = 1000L; + public static final long DEFAULT_POLL_TIMEOUT = 1000L; - private static final int DEFAULT_SHUTDOWN_TIMEOUT = 10000; + public static final int DEFAULT_SHUTDOWN_TIMEOUT = 10000; - private static final int DEFAULT_MONITOR_INTERVAL = 30; + public static final int DEFAULT_MONITOR_INTERVAL = 30; - private static final float DEFAULT_NO_POLL_THRESHOLD = 3f; + public static final float DEFAULT_NO_POLL_THRESHOLD = 3f; /** * Topic names. @@ -270,7 +270,7 @@ public class ContainerProperties { /** * Set the timeout for shutting down the container. This is the maximum amount of * time that the invocation to {@code #stop(Runnable)} will block for, before - * returning. + * returning; default {@value #DEFAULT_SHUTDOWN_TIMEOUT}. * @param shutdownTimeout the shutdown timeout. */ public void setShutdownTimeout(long shutdownTimeout) {