5050import org .springframework .beans .factory .DisposableBean ;
5151import org .springframework .beans .factory .InitializingBean ;
5252import org .springframework .kafka .test .core .BrokerAddress ;
53- import org .springframework .kafka .test .rule .EmbeddedKafkaRule ;
5453import org .springframework .retry .backoff .ExponentialBackOffPolicy ;
5554import org .springframework .retry .policy .SimpleRetryPolicy ;
5655import org .springframework .retry .support .RetryTemplate ;
8079 */
8180public class EmbeddedKafkaBroker implements InitializingBean , DisposableBean {
8281
83- private static final Log logger = LogFactory .getLog (EmbeddedKafkaRule .class );
82+ private static final Log logger = LogFactory .getLog (EmbeddedKafkaBroker .class );
8483
8584 public static final String BEAN_NAME = "embeddedKafka" ;
8685
@@ -146,7 +145,7 @@ public EmbeddedKafkaBroker(int count, boolean controlledShutdown, int partitions
146145 * Specify the properties to configure Kafka Broker before start, e.g.
147146 * {@code auto.create.topics.enable}, {@code transaction.state.log.replication.factor} etc.
148147 * @param brokerProperties the properties to use for configuring Kafka Broker(s).
149- * @return this for chaining configuration
148+ * @return this for chaining configuration.
150149 * @see KafkaConfig
151150 */
152151 public EmbeddedKafkaBroker brokerProperties (Map <String , String > brokerProperties ) {
@@ -158,7 +157,7 @@ public EmbeddedKafkaBroker brokerProperties(Map<String, String> brokerProperties
158157 * Specify a broker property.
159158 * @param property the property name.
160159 * @param value the value.
161- * @return the {@link EmbeddedKafkaRule }.
160+ * @return the {@link EmbeddedKafkaBroker }.
162161 */
163162 public EmbeddedKafkaBroker brokerProperty (String property , Object value ) {
164163 this .brokerProperties .put (property , value );
@@ -169,6 +168,7 @@ public EmbeddedKafkaBroker brokerProperty(String property, Object value) {
169168 * Set explicit ports on which the kafka brokers will listen. Useful when running an
170169 * embedded broker that you want to access from other processes.
171170 * @param kafkaPorts the ports.
171+ * @return the {@link EmbeddedKafkaBroker}.
172172 */
173173 public EmbeddedKafkaBroker kafkaPorts (int ... kafkaPorts ) {
174174 Assert .isTrue (kafkaPorts .length == this .count , "A port must be provided for each instance ["
0 commit comments