The message builder type.
* @author Gary Russell
* @since 1.3
*
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/MessageDeliveryMode.java b/spring-amqp/src/main/java/org/springframework/amqp/core/MessageDeliveryMode.java
index 7981b7bd..1a4f7bff 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/MessageDeliveryMode.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/core/MessageDeliveryMode.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,15 @@ package org.springframework.amqp.core;
*/
public enum MessageDeliveryMode {
- NON_PERSISTENT, PERSISTENT;
+ /**
+ * Non persistent.
+ */
+ NON_PERSISTENT,
+
+ /**
+ * Persistent.
+ */
+ PERSISTENT;
public static int toInt(MessageDeliveryMode mode) {
switch (mode) {
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/MessageProperties.java b/spring-amqp/src/main/java/org/springframework/amqp/core/MessageProperties.java
index 82ccf5e4..44eb3898 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/MessageProperties.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/core/MessageProperties.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -472,7 +472,7 @@ public class MessageProperties implements Serializable {
/**
* Set the inferred target argument type when using a method-level
- * {@code @RabbitListener}
+ * {@code @RabbitListener}.
* @param inferredArgumentType the type.
* @since 1.6
*/
@@ -499,7 +499,7 @@ public class MessageProperties implements Serializable {
}
/**
- * The target bean when using {@code @RabbitListener}
+ * The target bean when using {@code @RabbitListener}.
* @return the bean.
* @since 1.6
*/
@@ -508,7 +508,7 @@ public class MessageProperties implements Serializable {
}
/**
- * Set the target bean when using {@code @RabbitListener}
+ * Set the target bean when using {@code @RabbitListener}.
* @param targetBean the bean.
* @since 1.6
*/
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/Queue.java b/spring-amqp/src/main/java/org/springframework/amqp/core/Queue.java
index 8da2e39f..5ca3113f 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/Queue.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/core/Queue.java
@@ -93,9 +93,9 @@ public class Queue extends AbstractDeclarable {
}
/**
- * A durable queue will survive a server restart
+ * A durable queue will survive a server restart.
*
- * @return true if durable
+ * @return true if durable.
*/
public boolean isDurable() {
return this.durable;
@@ -104,7 +104,7 @@ public class Queue extends AbstractDeclarable {
/**
* True if the server should only send messages to the declarer's connection.
*
- * @return true if auto-delete
+ * @return true if exclusive.
*/
public boolean isExclusive() {
return this.exclusive;
@@ -114,7 +114,7 @@ public class Queue extends AbstractDeclarable {
* True if the server should delete the queue when it is no longer in use (the last consumer is cancelled). A queue
* that never has any consumers will not be deleted automatically.
*
- * @return true if auto-delete
+ * @return true if auto-delete.
*/
public boolean isAutoDelete() {
return this.autoDelete;
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/ReplyToAddressCallback.java b/spring-amqp/src/main/java/org/springframework/amqp/core/ReplyToAddressCallback.java
index 814ef43a..63929cdb 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/ReplyToAddressCallback.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/core/ReplyToAddressCallback.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2016 the original author or authors.
+ * Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,10 +23,11 @@ package org.springframework.amqp.core;
*
* This often as an anonymous class within a method implementation.
*
-* @author Artem Bilan
-* @author Gary Russell
-* @since 1.3
-*/
+ * @param the reply type.
+ * @author Artem Bilan
+ * @author Gary Russell
+ * @since 1.3
+ */
@FunctionalInterface
public interface ReplyToAddressCallback {
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/SimpleAmqpHeaderMapper.java b/spring-amqp/src/main/java/org/springframework/amqp/support/SimpleAmqpHeaderMapper.java
index 3e085ba8..09c5bbf7 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/SimpleAmqpHeaderMapper.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/SimpleAmqpHeaderMapper.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -268,6 +268,8 @@ public class SimpleAmqpHeaderMapper extends AbstractHeaderMapper headers) {
String contentTypeStringValue = null;
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJavaTypeMapper.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJavaTypeMapper.java
index 6d4e3088..49dca2ad 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJavaTypeMapper.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJavaTypeMapper.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,6 +28,8 @@ import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.type.TypeFactory;
/**
+ * Abstract type mapper.
+ *
* @author Mark Pollack
* @author Sam Nelson
* @author Andreas Asplund
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJsonMessageConverter.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJsonMessageConverter.java
index ac61b69b..8bc9c42a 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJsonMessageConverter.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJsonMessageConverter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.util.ClassUtils;
/**
- *
+ * Abstract JSON message converter.
* @author Mark Pollack
* @author James Carr
* @author Dave Syer
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/ContentTypeDelegatingMessageConverter.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/ContentTypeDelegatingMessageConverter.java
index 618c564d..74f138c5 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/ContentTypeDelegatingMessageConverter.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/ContentTypeDelegatingMessageConverter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015-2016 the original author or authors.
+ * Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -69,6 +69,7 @@ public class ContentTypeDelegatingMessageConverter implements MessageConverter {
/**
+ * Add a delegate converter for the content type.
* @param contentType the content type to check.
* @param messageConverter the {@link MessageConverter} for the content type.
* @since 1.6
@@ -78,6 +79,7 @@ public class ContentTypeDelegatingMessageConverter implements MessageConverter {
}
/**
+ * Remove the delegate for the content type.
* @param contentType the content type key to remove {@link MessageConverter} from delegates.
* @return the remove {@link MessageConverter}.
*/
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/DefaultClassMapper.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/DefaultClassMapper.java
index 1896baf1..7d036e77 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/DefaultClassMapper.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/DefaultClassMapper.java
@@ -81,8 +81,8 @@ public class DefaultClassMapper implements ClassMapper, InitializingBean {
* if the {@value #DEFAULT_CLASSID_FIELD_NAME} header is {@code HashTable} convert to this
* class.
* @param defaultMapClass the map class.
- * @see #DEFAULT_CLASSID_FIELD_NAME
* @since 2.0
+ * @see #DEFAULT_CLASSID_FIELD_NAME
*/
public void setDefaultMapClass(Class> defaultMapClass) {
this.defaultMapClass = defaultMapClass;
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/DefaultJackson2JavaTypeMapper.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/DefaultJackson2JavaTypeMapper.java
index 99b2aded..972f7dc1 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/DefaultJackson2JavaTypeMapper.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/DefaultJackson2JavaTypeMapper.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,6 +24,7 @@ import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.type.TypeFactory;
/**
+ * Jackson 2 type mapper.
* @author Mark Pollack
* @author Sam Nelson
* @author Andreas Asplund
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/Jackson2JavaTypeMapper.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/Jackson2JavaTypeMapper.java
index 0aa9fd4f..c18b1d30 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/Jackson2JavaTypeMapper.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/Jackson2JavaTypeMapper.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,6 +32,10 @@ import com.fasterxml.jackson.databind.JavaType;
*/
public interface Jackson2JavaTypeMapper extends ClassMapper {
+ /**
+ * The precedence for type conversion - inferred from the method parameter or message
+ * headers. Only applies if both exist.
+ */
enum TypePrecedence {
INFERRED, TYPE_ID
}
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/Jackson2JsonMessageConverter.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/Jackson2JsonMessageConverter.java
index 8850190d..64b95e4e 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/Jackson2JsonMessageConverter.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/Jackson2JsonMessageConverter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -75,9 +75,10 @@ public class Jackson2JsonMessageConverter extends AbstractJsonMessageConverter i
}
/**
+ * Return the type precedence.
* @return the precedence.
- * @see #setTypePrecedence(Jackson2JavaTypeMapper.TypePrecedence)
* @since 1.6.
+ * @see #setTypePrecedence(Jackson2JavaTypeMapper.TypePrecedence)
*/
public Jackson2JavaTypeMapper.TypePrecedence getTypePrecedence() {
return this.javaTypeMapper.getTypePrecedence();
@@ -133,6 +134,7 @@ public class Jackson2JsonMessageConverter extends AbstractJsonMessageConverter i
}
/**
+ * {@inheritDoc}
* @param conversionHint The conversionHint must be a {@link ParameterizedTypeReference}.
*/
@Override
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/MessageConverter.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/MessageConverter.java
index df1ff7a6..1a6a335f 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/MessageConverter.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/MessageConverter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2014 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@ import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageProperties;
/**
+ * Message converter interface.
* @author Mark Fisher
* @author Mark Pollack
*/
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/SmartMessageConverter.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/SmartMessageConverter.java
index 3a33b830..4059ae60 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/SmartMessageConverter.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/SmartMessageConverter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 the original author or authors.
+ * Copyright 2016-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,8 +38,8 @@ public interface SmartMessageConverter extends MessageConverter {
* @param conversionHint an extra object passed to the {@link MessageConverter}.
* @return the result of the conversion, or {@code null} if the converter cannot
* perform the conversion.
- * @see #fromMessage(Message)
* @throws MessageConversionException if the conversion fails.
+ * @see #fromMessage(Message)
*/
Object fromMessage(Message message, Object conversionHint) throws MessageConversionException;
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractCompressingPostProcessor.java b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractCompressingPostProcessor.java
index 907ba54e..42fa736f 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractCompressingPostProcessor.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractCompressingPostProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -98,6 +98,7 @@ public abstract class AbstractCompressingPostProcessor implements MessagePostPro
}
/**
+ * Set the order.
* @param order the order, default 0.
* @see Ordered
*/
@@ -106,6 +107,7 @@ public abstract class AbstractCompressingPostProcessor implements MessagePostPro
}
/**
+ * Get the stream.
* @param stream The output stream to write the compressed data to.
* @return the compressor output stream.
* @throws IOException IOException
@@ -113,6 +115,7 @@ public abstract class AbstractCompressingPostProcessor implements MessagePostPro
protected abstract OutputStream getCompressorStream(OutputStream stream) throws IOException;
/**
+ * Get the encoding.
* @return the content-encoding header.
*/
protected abstract String getEncoding();
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractDecompressingPostProcessor.java b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractDecompressingPostProcessor.java
index b27ab68d..d2147fd1 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractDecompressingPostProcessor.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractDecompressingPostProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -71,6 +71,7 @@ public abstract class AbstractDecompressingPostProcessor implements MessagePostP
}
/**
+ * Set the order.
* @param order the order, default 0.
* @see Ordered
*/
@@ -115,6 +116,7 @@ public abstract class AbstractDecompressingPostProcessor implements MessagePostP
}
/**
+ * Get the stream.
* @param stream The output stream to write the compressed data to.
* @return the decompressor input stream.
* @throws IOException IOException
@@ -122,6 +124,7 @@ public abstract class AbstractDecompressingPostProcessor implements MessagePostP
protected abstract InputStream getDecompressorStream(InputStream stream) throws IOException;
/**
+ * Get the encoding.
* @return the content-encoding header.
*/
protected abstract String getEncoding();
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractDeflaterPostProcessor.java b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractDeflaterPostProcessor.java
index dc0eeb51..e8613a56 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractDeflaterPostProcessor.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/AbstractDeflaterPostProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package org.springframework.amqp.support.postprocessor;
import java.util.zip.Deflater;
/**
- * Base class for post processors based on {@link Deflater}
+ * Base class for post processors based on {@link Deflater}.
* @author Gary Russell
*
* @since 1.4.2
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/DelegatingDecompressingPostProcessor.java b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/DelegatingDecompressingPostProcessor.java
index 0a2e608b..1e4e1c88 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/DelegatingDecompressingPostProcessor.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/DelegatingDecompressingPostProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -49,6 +49,7 @@ public class DelegatingDecompressingPostProcessor implements MessagePostProcesso
}
/**
+ * Set the order.
* @param order the order.
* @see Ordered
*/
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/MessagePostProcessorUtils.java b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/MessagePostProcessorUtils.java
index be33982d..4be9b97d 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/MessagePostProcessorUtils.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/MessagePostProcessorUtils.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,6 +26,8 @@ import org.springframework.core.Ordered;
import org.springframework.core.PriorityOrdered;
/**
+ * Utilities for message post processors.
+ *
* @author Gary Russell
* @since 1.4.2
*
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/utils/MapBuilder.java b/spring-amqp/src/main/java/org/springframework/amqp/utils/MapBuilder.java
index 31bb81c2..2a275da4 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/utils/MapBuilder.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/utils/MapBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 the original author or authors.
+ * Copyright 2016-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,7 +21,9 @@ import java.util.Map;
/**
* A {@code Builder} pattern implementation for a {@link Map}.
- *
+ * @param the builder type.
+ * @param the key type.
+ * @param the value type.
* @author Artem Bilan
* @author Gary Russell
* @since 2.0
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/utils/SerializationUtils.java b/spring-amqp/src/main/java/org/springframework/amqp/utils/SerializationUtils.java
index 255c3e17..3455ef6c 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/utils/SerializationUtils.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp/utils/SerializationUtils.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2016 the original author or authors.
+ * Copyright 2006-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -55,6 +55,7 @@ public final class SerializationUtils {
}
/**
+ * Deserialize the bytes.
* @param bytes a serialized object created
* @return the result of deserializing the bytes
*/
@@ -71,6 +72,7 @@ public final class SerializationUtils {
}
/**
+ * Deserialize the stream.
* @param stream an object stream created from a serialized object
* @return the result of deserializing the bytes
*/
diff --git a/spring-rabbit-junit/src/main/java/org/springframework/amqp/rabbit/junit/BrokerRunning.java b/spring-rabbit-junit/src/main/java/org/springframework/amqp/rabbit/junit/BrokerRunning.java
index 6c8047ea..a6b746df 100644
--- a/spring-rabbit-junit/src/main/java/org/springframework/amqp/rabbit/junit/BrokerRunning.java
+++ b/spring-rabbit-junit/src/main/java/org/springframework/amqp/rabbit/junit/BrokerRunning.java
@@ -70,14 +70,12 @@ import com.rabbitmq.http.client.Client;
* set the environment variable {@value #BROKER_REQUIRED} to {@code true} and the
* tests will fail fast.
*
- * @see Assume
- * @see AssumptionViolatedException
- *
* @author Dave Syer
* @author Gary Russell
*
* @since 1.7
- *
+ * @see Assume
+ * @see AssumptionViolatedException
*/
public final class BrokerRunning extends TestWatcher {
@@ -142,6 +140,7 @@ public final class BrokerRunning extends TestWatcher {
}
/**
+ * @param queues the queues.
* @return a new rule that assumes an existing broker with the management plugin with
* the provided queues declared (and emptied if needed)..
*/
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate.java
index c6daed48..40d60bc6 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate.java
@@ -656,6 +656,7 @@ public class AsyncRabbitTemplate implements AsyncAmqpTemplate, ChannelAwareMessa
/**
* Base class for {@link ListenableFuture}s returned by {@link AsyncRabbitTemplate}.
+ * @param the type.
* @since 1.6
*/
public abstract class RabbitFuture extends SettableListenableFuture {
@@ -767,6 +768,7 @@ public class AsyncRabbitTemplate implements AsyncAmqpTemplate, ChannelAwareMessa
/**
* A {@link RabbitFuture} with a return type of the template's
* generic parameter.
+ * @param the type.
* @since 1.6
*/
public class RabbitConverterFuture extends RabbitFuture implements ListenableFuture {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/Argument.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/Argument.java
index 63f4e600..6deb5e32 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/Argument.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/Argument.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 the original author or authors.
+ * Copyright 2016-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,6 +33,7 @@ import java.lang.annotation.Target;
public @interface Argument {
/**
+ * Return the argument name.
* @return the argument name.
*/
String name();
@@ -45,6 +46,7 @@ public @interface Argument {
String value() default "";
/**
+ * Return the argument value.
* @return the type of the argument value.
*/
String type() default "java.lang.String";
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListenerAnnotationBeanPostProcessor.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListenerAnnotationBeanPostProcessor.java
index 6441983f..f229d654 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListenerAnnotationBeanPostProcessor.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListenerAnnotationBeanPostProcessor.java
@@ -755,7 +755,8 @@ public class RabbitListenerAnnotationBeanPostProcessor
/**
* Resolve the specified value if possible.
- *
+ * @param value the value to resolve.
+ * @return the resolved value.
* @see ConfigurableBeanFactory#resolveEmbeddedValue
*/
private String resolve(String value) {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AbstractRabbitListenerContainerFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AbstractRabbitListenerContainerFactory.java
index d39997f9..19cde256 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AbstractRabbitListenerContainerFactory.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AbstractRabbitListenerContainerFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -44,7 +44,7 @@ import org.springframework.util.backoff.FixedBackOff;
/**
* Base {@link RabbitListenerContainerFactory} for Spring's base container implementation.
- *
+ * @param the container type.
* @author Stephane Nicoll
* @author Gary Russell
* @author Artem Bilan
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AdminParser.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AdminParser.java
index 90d7c8ef..a212ca27 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AdminParser.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AdminParser.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,7 +24,8 @@ import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.util.StringUtils;
/**
- * @author tomas.lukosius@opencredo.com
+ * Parser for <rabbit:admin/>.
+ * @author Tomas Lukosius
* @since 1.0
*/
class AdminParser extends AbstractSingleBeanDefinitionParser {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/NamespaceUtils.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/NamespaceUtils.java
index 9c23a3f9..3f63af4d 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/NamespaceUtils.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/NamespaceUtils.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -82,13 +82,11 @@ public abstract class NamespaceUtils {
* The property name will be the camel-case equivalent of the lower case hyphen separated attribute (e.g. the
* "foo-bar" attribute would match the "fooBar" property).
*
- * @see Conventions#attributeNameToPropertyName(String)
- *
* @param builder the bean definition builder to be configured
* @param element the XML element where the attribute should be defined
* @param attributeName the name of the attribute whose value will be set on the property
- *
* @return true if defined.
+ * @see Conventions#attributeNameToPropertyName(String)
*/
public static boolean setValueIfAttributeDefined(BeanDefinitionBuilder builder, Element element,
String attributeName) {
@@ -101,7 +99,6 @@ public abstract class NamespaceUtils {
*
* @param element the XML element where the attribute should be defined
* @param attributeName the name of the attribute whose value will be used as a constructor argument
- *
* @return true if defined.
*/
public static boolean isAttributeDefined(Element element, String attributeName) {
@@ -116,7 +113,6 @@ public abstract class NamespaceUtils {
* @param builder the bean definition builder to be configured
* @param element the XML element where the attribute should be defined
* @param attributeName the name of the attribute whose value will be used as a constructor argument
- *
* @return true if defined.
*/
public static boolean addConstructorArgValueIfAttributeDefined(BeanDefinitionBuilder builder, Element element,
@@ -220,15 +216,11 @@ public abstract class NamespaceUtils {
* The property name will be the camel-case equivalent of the lower case hyphen separated attribute (e.g. the
* "foo-bar" attribute would match the "fooBar" property).
*
- * @see Conventions#attributeNameToPropertyName(String)
- *
* @param builder the bean definition builder to be configured
* @param element the XML element where the attribute should be defined
* @param attributeName the name of the attribute whose value will be used as a bean reference to populate the
* property
- *
* @return true if defined.
- *
* @see Conventions#attributeNameToPropertyName(String)
*/
public static boolean setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, Element element,
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/QueueParser.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/QueueParser.java
index e3f8dd42..6d6ab6e2 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/QueueParser.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/QueueParser.java
@@ -39,7 +39,7 @@ public class QueueParser extends AbstractSingleBeanDefinitionParser {
private static final ThreadLocal CURRENT_ELEMENT = new ThreadLocal<>();
- /** Element OR attribute */
+ /** Element OR attribute. */
private static final String ARGUMENTS = "queue-arguments";
private static final String DURABLE_ATTRIBUTE = "durable";
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/RetryInterceptorBuilder.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/RetryInterceptorBuilder.java
index d86ab461..f8061024 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/RetryInterceptorBuilder.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/RetryInterceptorBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -59,11 +59,12 @@ import org.springframework.util.Assert;
* .build();
*
*
+ * @param The type of {@link MethodInterceptor} returned by the builder's {@link #build()} method.
+ *
* @author James Carr
* @author Gary Russell
* @since 1.3
*
- * @param The type of {@link MethodInterceptor} returned by the builder's {@link #build()} method.
*/
public abstract class RetryInterceptorBuilder {
@@ -200,6 +201,9 @@ public abstract class RetryInterceptorBuilder {
public abstract T build();
+ /**
+ * Builder for a stateful interceptor.
+ */
public static final class StatefulRetryInterceptorBuilder extends RetryInterceptorBuilder {
private final StatefulRetryOperationsInterceptorFactoryBean factoryBean =
@@ -287,6 +291,9 @@ public abstract class RetryInterceptorBuilder {
}
+ /**
+ * Builder for a stateless interceptor.
+ */
public static final class StatelessRetryInterceptorBuilder
extends RetryInterceptorBuilder {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatefulRetryOperationsInterceptorFactoryBean.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatefulRetryOperationsInterceptorFactoryBean.java
index ca7da381..e8ba1aa6 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatefulRetryOperationsInterceptorFactoryBean.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatefulRetryOperationsInterceptorFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,12 +39,12 @@ import org.springframework.retry.support.RetryTemplate;
* processed using a {@link MessageRecoverer} if one is provided, in a new transaction. If a recoverer is not provided
* the message will be logged and dropped.
*
- * @see RetryOperations#execute(org.springframework.retry.RetryCallback, org.springframework.retry.RecoveryCallback,
- * org.springframework.retry.RetryState)
- *
* @author Dave Syer
* @author Gary Russell
*
+ * @see RetryOperations#execute(org.springframework.retry.RetryCallback, org.springframework.retry.RecoveryCallback,
+ * org.springframework.retry.RetryState)
+ *
*/
public class StatefulRetryOperationsInterceptorFactoryBean extends AbstractRetryOperationsInterceptorFactoryBean {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatelessRetryOperationsInterceptorFactoryBean.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatelessRetryOperationsInterceptorFactoryBean.java
index 8daf28d4..18045674 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatelessRetryOperationsInterceptorFactoryBean.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatelessRetryOperationsInterceptorFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,11 +35,10 @@ import org.springframework.retry.support.RetryTemplate;
* transaction (in which case no exception is propagated). If a recoverer is not provided the exception will be
* propagated and the message may be redelivered if the channel is transactional.
*
- * @see RetryOperations#execute(org.springframework.retry.RetryCallback, org.springframework.retry.RecoveryCallback)
- *
* @author Dave Syer
* @author Gary Russell
*
+ * @see RetryOperations#execute(org.springframework.retry.RetryCallback, org.springframework.retry.RecoveryCallback)
*/
public class StatelessRetryOperationsInterceptorFactoryBean extends AbstractRetryOperationsInterceptorFactoryBean {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java
index f9dbf206..146c5007 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java
@@ -148,8 +148,8 @@ public abstract class AbstractConnectionFactory implements ConnectionFactory, Di
/**
* @param uri the URI
- * @see com.rabbitmq.client.ConnectionFactory#setUri(URI)
* @since 1.5
+ * @see com.rabbitmq.client.ConnectionFactory#setUri(URI)
*/
public void setUri(URI uri) {
try {
@@ -162,8 +162,8 @@ public abstract class AbstractConnectionFactory implements ConnectionFactory, Di
/**
* @param uri the URI
- * @see com.rabbitmq.client.ConnectionFactory#setUri(String)
* @since 1.5
+ * @see com.rabbitmq.client.ConnectionFactory#setUri(String)
*/
public void setUri(String uri) {
try {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractRoutingConnectionFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractRoutingConnectionFactory.java
index 7bd1e67e..49ad486a 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractRoutingConnectionFactory.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractRoutingConnectionFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -192,9 +192,9 @@ public abstract class AbstractRoutingConnectionFactory implements ConnectionFact
}
/**
- * Adds the given {@link ConnectionFactory} and associates it with the given lookup key
- * @param key the lookup key
- * @param connectionFactory the {@link ConnectionFactory}
+ * Adds the given {@link ConnectionFactory} and associates it with the given lookup key.
+ * @param key the lookup key.
+ * @param connectionFactory the {@link ConnectionFactory}.
*/
protected void addTargetConnectionFactory(Object key, ConnectionFactory connectionFactory) {
this.targetConnectionFactories.put(key, connectionFactory);
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactory.java
index 56db1ea3..4bc11a25 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactory.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactory.java
@@ -109,13 +109,16 @@ public class CachingConnectionFactory extends AbstractConnectionFactory
private final ChannelCachingConnectionProxy connection = new ChannelCachingConnectionProxy(null);
+ /**
+ * The cache mode.
+ */
public enum CacheMode {
/**
- * Cache channels - single connection
+ * Cache channels - single connection.
*/
CHANNEL,
/**
- * Cache connections and channels within each connection
+ * Cache connections and channels within each connection.
*/
CONNECTION
}
@@ -172,7 +175,7 @@ public class CachingConnectionFactory extends AbstractConnectionFactory
private volatile ConditionalExceptionLogger closeExceptionLogger = new DefaultChannelCloseLogger();
- /** Synchronization monitor for the shared Connection */
+ /** Synchronization monitor for the shared Connection. */
private final Object connectionMonitor = new Object();
/** Executor used for deferred close if no explicit executor set. */
@@ -324,8 +327,8 @@ public class CachingConnectionFactory extends AbstractConnectionFactory
*
* Since 1.5.5, also applies to getting a connection when the cache mode is CONNECTION.
* @param channelCheckoutTimeout the timeout in milliseconds; default 0 (channel limiting not enabled).
- * @see #setConnectionLimit(int)
* @since 1.4.2
+ * @see #setConnectionLimit(int)
*/
public void setChannelCheckoutTimeout(long channelCheckoutTimeout) {
this.channelCheckoutTimeout = channelCheckoutTimeout;
@@ -727,9 +730,9 @@ public class CachingConnectionFactory extends AbstractConnectionFactory
* Defaults to phase {@link Integer#MIN_VALUE - 1000} so the factory is
* stopped in a very late phase, allowing other beans to use the connection
* to clean up.
- * @see #getPhase()
* @param phase the phase.
* @since 1.5.3
+ * @see #getPhase()
*/
public void setPhase(int phase) {
this.phase = phase;
@@ -1015,8 +1018,9 @@ public class CachingConnectionFactory extends AbstractConnectionFactory
}
/**
- * GUARDED by channelList
- * @param proxy the channel to close
+ * GUARDED by channelList.
+ * @param proxy the channel to close.
+ * @throws Exception an exception.
*/
private void logicalClose(ChannelProxy proxy) throws Exception {
if (this.target == null) {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitAccessor.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitAccessor.java
index a90bfbd3..e28b203a 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitAccessor.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitAccessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ import com.rabbitmq.client.Channel;
*/
public abstract class RabbitAccessor implements InitializingBean {
- /** Logger available to subclasses */
+ /** Logger available to subclasses. */
protected final Log logger = LogFactory.getLog(getClass()); // NOSONAR
private volatile ConnectionFactory connectionFactory;
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitConnectionFactoryBean.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitConnectionFactoryBean.java
index d13f1bf5..6a4ee671 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitConnectionFactoryBean.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitConnectionFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -316,7 +316,7 @@ public class RabbitConnectionFactoryBean extends AbstractFactoryBean map = resources.get();
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/ChannelCallback.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/ChannelCallback.java
index 991bfa3e..4083ff74 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/ChannelCallback.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/ChannelCallback.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,7 +19,8 @@ package org.springframework.amqp.rabbit.core;
import com.rabbitmq.client.Channel;
/**
- * Basic callback for use in RabbitTemplate
+ * Basic callback for use in RabbitTemplate.
+ * @param the return type.
* @author Mark Fisher
* @author Gary Russell
*/
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java
index 898d2a58..8411956f 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java
@@ -53,7 +53,7 @@ import com.rabbitmq.client.AMQP.Queue.DeclareOk;
import com.rabbitmq.client.Channel;
/**
- * RabbitMQ implementation of portable AMQP administrative operations for AMQP >= 0.9.1
+ * RabbitMQ implementation of portable AMQP administrative operations for AMQP >= 0.9.1.
*
* @author Mark Pollack
* @author Mark Fisher
@@ -90,7 +90,7 @@ public class RabbitAdmin implements AmqpAdmin, ApplicationContextAware, Applicat
private static final String DELAYED_MESSAGE_EXCHANGE = "x-delayed-message";
- /** Logger available to subclasses */
+ /** Logger available to subclasses. */
protected final Log logger = LogFactory.getLog(getClass());
private final RabbitTemplate rabbitTemplate;
@@ -469,6 +469,7 @@ public class RabbitAdmin implements AmqpAdmin, ApplicationContextAware, Applicat
/**
* Remove any instances that should not be declared by this admin.
* @param declarables the collection of {@link Declarable}s.
+ * @param the declarable type.
* @return a new collection containing {@link Declarable}s that should be declared by this
* admin.
*/
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitGatewaySupport.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitGatewaySupport.java
index a713d8b6..8adf1188 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitGatewaySupport.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitGatewaySupport.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@ import org.springframework.beans.factory.InitializingBean;
*/
public class RabbitGatewaySupport implements InitializingBean {
- /** Logger available to subclasses */
+ /** Logger available to subclasses. */
protected final Log logger = LogFactory.getLog(getClass());
private RabbitOperations rabbitOperations;
@@ -49,10 +49,9 @@ public class RabbitGatewaySupport implements InitializingBean {
/**
* Set the Rabbit connection factory to be used by the gateway.
* Will automatically create a RabbitTemplate for the given ConnectionFactory.
+ * @param connectionFactory The connection factory.
* @see #createRabbitTemplate
* @see #setConnectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory)
- *
- * @param connectionFactory The connection factory.
*/
public final void setConnectionFactory(ConnectionFactory connectionFactory) {
this.rabbitOperations = createRabbitTemplate(connectionFactory);
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitMessageOperations.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitMessageOperations.java
index 3f683bb6..f51e3012 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitMessageOperations.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitMessageOperations.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2014 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,6 +42,7 @@ public interface RabbitMessageOperations extends MessageSendingOperations message) throws MessagingException;
@@ -53,6 +54,7 @@ public interface RabbitMessageOperations extends MessageSendingOperations headers)
throws MessagingException;
@@ -79,6 +82,7 @@ public interface RabbitMessageOperations extends MessageSendingOperations headers, MessagePostProcessor postProcessor) throws MessagingException;
/**
* Send a request message to a specific exchange with a specific routing key and
- * wait for the reply
+ * wait for the reply.
* @param exchange the name of the exchange
* @param routingKey the routing key
* @param requestMessage the message to send
* @return the reply, possibly {@code null} if the message could not be received,
* for example due to a timeout
+ * @throws MessagingException a messaging exception.
*/
Message> sendAndReceive(String exchange, String routingKey, Message> requestMessage) throws MessagingException;
@@ -121,6 +127,7 @@ public interface RabbitMessageOperations extends MessageSendingOperations return type
* @return the payload of the reply message, possibly {@code null} if the message
* could not be received, for example due to a timeout
+ * @throws MessagingException a messaging exception.
*/
T convertSendAndReceive(String exchange, String routingKey, Object request, Class targetClass)
throws MessagingException;
@@ -139,6 +146,7 @@ public interface RabbitMessageOperations extends MessageSendingOperations return type
* @return the payload of the reply message, possibly {@code null} if the message
* could not be received, for example due to a timeout
+ * @throws MessagingException a messaging exception.
*/
T convertSendAndReceive(String exchange, String routingKey, Object request, Map headers,
Class targetClass) throws MessagingException;
@@ -157,6 +165,7 @@ public interface RabbitMessageOperations extends MessageSendingOperations return type
* @return the payload of the reply message, possibly {@code null} if the message
* could not be received, for example due to a timeout
+ * @throws MessagingException a messaging exception.
*/
T convertSendAndReceive(String exchange, String routingKey, Object request, Class targetClass,
MessagePostProcessor requestPostProcessor) throws MessagingException;
@@ -177,6 +186,7 @@ public interface RabbitMessageOperations extends MessageSendingOperations return type
* @return the payload of the reply message, possibly {@code null} if the message
* could not be received, for example due to a timeout
+ * @throws MessagingException a messaging exception.
*/
T convertSendAndReceive(String exchange, String routingKey, Object request, Map headers,
Class targetClass, MessagePostProcessor requestPostProcessor) throws MessagingException;
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
index 54276dfb..e00725b3 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
@@ -142,7 +142,7 @@ public class RabbitTemplate extends RabbitAccessor implements BeanFactoryAware,
private static final String RETURN_CORRELATION_KEY = "spring_request_return_correlation";
- /** Alias for amq.direct default exchange */
+ /** Alias for amq.direct default exchange. */
private static final String DEFAULT_EXCHANGE = "";
private static final String DEFAULT_ROUTING_KEY = "";
@@ -564,8 +564,8 @@ public class RabbitTemplate extends RabbitAccessor implements BeanFactoryAware,
* Set a {@link CorrelationDataPostProcessor} to be invoked before publishing a message.
* Correlation data is used to correlate publisher confirms.
* @param correlationDataPostProcessor the post processor.
- * @see #setConfirmCallback(ConfirmCallback)
* @since 1.6.7
+ * @see #setConfirmCallback(ConfirmCallback)
*/
public void setCorrelationDataPostProcessor(CorrelationDataPostProcessor correlationDataPostProcessor) {
this.correlationDataPostProcessor = correlationDataPostProcessor;
@@ -1780,7 +1780,7 @@ public class RabbitTemplate extends RabbitAccessor implements BeanFactoryAware,
* @param message The Message to send.
* @param mandatory The mandatory flag.
* @param correlationData The correlation data.
- * @throws IOException If thrown by RabbitMQ API methods
+ * @throws Exception If thrown by RabbitMQ API methods
*/
public void doSend(Channel channel, String exchange, String routingKey, Message message,
boolean mandatory, CorrelationData correlationData) throws Exception {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractMessageListenerContainer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractMessageListenerContainer.java
index 914e009a..d3668d5d 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractMessageListenerContainer.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractMessageListenerContainer.java
@@ -629,8 +629,8 @@ public abstract class AbstractMessageListenerContainer extends RabbitAccessor
/**
* Return the default requeue rejected.
* @return the boolean.
- * @see #setDefaultRequeueRejected(boolean)
* @since 2.0
+ * @see #setDefaultRequeueRejected(boolean)
*/
protected boolean isDefaultRequeueRejected() {
return this.defaultRequeueRejected;
@@ -1579,6 +1579,9 @@ public abstract class AbstractMessageListenerContainer extends RabbitAccessor
}
}
+ /**
+ * A runtime exception to wrap a {@link Throwable}.
+ */
@SuppressWarnings("serial")
protected static final class WrappedTransactionException extends RuntimeException {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractRabbitListenerEndpoint.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractRabbitListenerEndpoint.java
index f645f4ee..ffd9db87 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractRabbitListenerEndpoint.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractRabbitListenerEndpoint.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2015 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@ import org.springframework.expression.BeanResolver;
import org.springframework.util.Assert;
/**
- * Base model for a Rabbit listener endpoint
+ * Base model for a Rabbit listener endpoint.
*
* @author Stephane Nicoll
* @author Gary Russell
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/ActiveObjectCounter.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/ActiveObjectCounter.java
index e70c79b1..53145d40 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/ActiveObjectCounter.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/ActiveObjectCounter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,6 +24,8 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
/**
+ * A mechanism to keep track of active objects.
+ * @param the object type.
* @author Dave Syer
*
*/
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/BlockingQueueConsumer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/BlockingQueueConsumer.java
index 1b2857fe..fa5310df 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/BlockingQueueConsumer.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/BlockingQueueConsumer.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -258,8 +258,8 @@ public class BlockingQueueConsumer {
/**
* Set the number of retries after passive queue declaration fails.
* @param declarationRetries The number of retries, default 3.
- * @see #setFailedDeclarationRetryInterval(long)
* @since 1.3.9
+ * @see #setFailedDeclarationRetryInterval(long)
*/
public void setDeclarationRetries(int declarationRetries) {
this.declarationRetries = declarationRetries;
@@ -268,8 +268,8 @@ public class BlockingQueueConsumer {
/**
* Set the interval between passive queue declaration attempts in milliseconds.
* @param failedDeclarationRetryInterval the interval, default 5000.
- * @see #setDeclarationRetries(int)
* @since 1.3.9
+ * @see #setDeclarationRetries(int)
*/
public void setFailedDeclarationRetryInterval(long failedDeclarationRetryInterval) {
this.failedDeclarationRetryInterval = failedDeclarationRetryInterval;
@@ -375,6 +375,9 @@ public class BlockingQueueConsumer {
* If this is a non-POISON non-null delivery simply return it.
* If this is POISON we are in shutdown mode, throw
* shutdown. If delivery is null, we may be in shutdown mode. Check and see.
+ * @param delivery the delivered message contents.
+ * @return A message built from the contents.
+ * @throws InterruptedException if the thread is interrupted.
*/
private Message handle(Delivery delivery) throws InterruptedException {
if ((delivery == null && this.shutdown != null)) {
@@ -698,8 +701,8 @@ public class BlockingQueueConsumer {
/**
* Perform a commit or message acknowledgement, as appropriate.
* @param locallyTransacted Whether the channel is locally transacted.
- * @throws IOException Any IOException.
* @return true if at least one delivery tag exists.
+ * @throws IOException Any IOException.
*/
public boolean commitIfNecessary(boolean locallyTransacted) throws IOException {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/ConditionalRejectingErrorHandler.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/ConditionalRejectingErrorHandler.java
index 8c32f877..c2638f62 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/ConditionalRejectingErrorHandler.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/ConditionalRejectingErrorHandler.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -78,6 +78,7 @@ public class ConditionalRejectingErrorHandler implements ErrorHandler {
}
/**
+ * @param t a {@link Throwable}.
* @return true if the cause chain already contains an
* {@link AmqpRejectAndDontRequeueException}.
*/
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectMessageListenerContainer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectMessageListenerContainer.java
index d879b3fe..ae5bcfe0 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectMessageListenerContainer.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectMessageListenerContainer.java
@@ -579,7 +579,7 @@ public class DirectMessageListenerContainer extends AbstractMessageListenerConta
}
/**
- * Must hold this.consumersMonitor
+ * Must hold this.consumersMonitor.
*/
private void actualShutDown() {
Assert.state(getTaskExecutor() != null, "Cannot shut down if not initialized");
@@ -619,6 +619,9 @@ public class DirectMessageListenerContainer extends AbstractMessageListenerConta
// default empty
}
+ /**
+ * The consumer object.
+ */
final class SimpleConsumer extends DefaultConsumer {
private final Log logger = DirectMessageListenerContainer.this.logger;
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectReplyToMessageListenerContainer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectReplyToMessageListenerContainer.java
index 989d05b7..6e21b5bc 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectReplyToMessageListenerContainer.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectReplyToMessageListenerContainer.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 the original author or authors.
+ * Copyright 2016-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -219,11 +219,11 @@ public class DirectReplyToMessageListenerContainer extends DirectMessageListener
*/
public static class ChannelHolder {
- public final Channel channel;
+ private final Channel channel;
- public final int consumerEpoch;
+ private final int consumerEpoch;
- public ChannelHolder(Channel channel, int consumerEpoch) {
+ ChannelHolder(Channel channel, int consumerEpoch) {
this.channel = channel;
this.consumerEpoch = consumerEpoch;
}
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/RabbitListenerContainerFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/RabbitListenerContainerFactory.java
index 633aec63..330e9201 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/RabbitListenerContainerFactory.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/RabbitListenerContainerFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ package org.springframework.amqp.rabbit.listener;
/**
* Factory of {@link MessageListenerContainer} based on a
* {@link RabbitListenerEndpoint} definition.
- *
+ * @param the container type.
* @author Stephane Nicoll
* @author Gary Russell
* @since 1.4
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/RabbitListenerEndpointRegistry.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/RabbitListenerEndpointRegistry.java
index f77282ab..e7250acb 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/RabbitListenerEndpointRegistry.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/RabbitListenerEndpointRegistry.java
@@ -101,8 +101,8 @@ public class RabbitListenerEndpointRegistry implements DisposableBean, SmartLife
/**
* Return the ids of the managed {@link MessageListenerContainer} instance(s).
* @return the ids.
- * @see #getListenerContainer(String)
* @since 1.5.2
+ * @see #getListenerContainer(String)
*/
public Set getListenerContainerIds() {
return Collections.unmodifiableSet(this.listenerContainers.keySet());
@@ -272,6 +272,7 @@ public class RabbitListenerEndpointRegistry implements DisposableBean, SmartLife
/**
* Start the specified {@link MessageListenerContainer} if it should be started
* on startup or when start is called explicitly after startup.
+ * @param listenerContainer the container.
* @see MessageListenerContainer#isAutoStartup()
*/
private void startIfNecessary(MessageListenerContainer listenerContainer) {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/SimpleMessageListenerContainer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/SimpleMessageListenerContainer.java
index 5b56f7ce..d383639f 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/SimpleMessageListenerContainer.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/SimpleMessageListenerContainer.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -371,8 +371,8 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
/**
* Set the number of retries after passive queue declaration fails.
* @param declarationRetries The number of retries, default 3.
- * @see #setFailedDeclarationRetryInterval(long)
* @since 1.3.9
+ * @see #setFailedDeclarationRetryInterval(long)
*/
public void setDeclarationRetries(int declarationRetries) {
this.declarationRetries = declarationRetries;
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/AbstractAdaptableMessageListener.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/AbstractAdaptableMessageListener.java
index 5e30c572..087128fc 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/AbstractAdaptableMessageListener.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/AbstractAdaptableMessageListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ import com.rabbitmq.client.Channel;
/**
* An abstract {@link MessageListener} adapter providing the necessary infrastructure
- * to extract the payload of a {@link Message}
+ * to extract the payload of a {@link Message}.
*
* @author Stephane Nicoll
* @author Gary Russell
@@ -67,7 +67,7 @@ public abstract class AbstractAdaptableMessageListener implements MessageListene
private static final ParserContext PARSER_CONTEXT = new TemplateParserContext("!{", "}");
- /** Logger available to subclasses */
+ /** Logger available to subclasses. */
protected final Log logger = LogFactory.getLog(getClass());
private final StandardEvaluationContext evalContext = new StandardEvaluationContext();
@@ -437,6 +437,9 @@ public abstract class AbstractAdaptableMessageListener implements MessageListene
protected void postProcessChannel(Channel channel, Message response) throws Exception {
}
+ /**
+ * Result holder.
+ */
public static final class ResultHolder {
private final Object result;
@@ -455,6 +458,9 @@ public abstract class AbstractAdaptableMessageListener implements MessageListene
}
+ /**
+ * Root object for reply expression evaluation.
+ */
public static final class ReplyExpressionRoot {
private final Message request;
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/DelegatingInvocableHandler.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/DelegatingInvocableHandler.java
index a2253c92..de667bc5 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/DelegatingInvocableHandler.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/DelegatingInvocableHandler.java
@@ -98,9 +98,9 @@ public class DelegatingInvocableHandler {
* Invoke the method with the given message.
* @param message the message.
* @param providedArgs additional arguments.
+ * @return the result of the invocation.
* @throws Exception raised if no suitable argument resolver can be found,
* or the method raised an exception.
- * @return the result of the invocation.
*/
public Object invoke(Message> message, Object... providedArgs) throws Exception {
Class extends Object> payloadClass = message.getPayload().getClass();
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/MessagingMessageListenerAdapter.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/MessagingMessageListenerAdapter.java
index a63c8c02..6925ac96 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/MessagingMessageListenerAdapter.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/MessagingMessageListenerAdapter.java
@@ -171,6 +171,10 @@ public class MessagingMessageListenerAdapter extends AbstractAdaptableMessageLis
/**
* Invoke the handler, wrapping any exception to a {@link ListenerExecutionFailedException}
* with a dedicated error message.
+ * @param amqpMessage the raw message.
+ * @param channel the channel.
+ * @param message the messaging message.
+ * @return the result of invoking the handler.
*/
private Object invokeHandler(org.springframework.amqp.core.Message amqpMessage, Channel channel,
Message> message) {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/ReplyingMessageListener.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/ReplyingMessageListener.java
index 4ba02234..7ddeb293 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/ReplyingMessageListener.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/ReplyingMessageListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 the original author or authors.
+ * Copyright 2016-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,6 +19,8 @@ package org.springframework.amqp.rabbit.listener.adapter;
/**
* A Message Listener that returns a reply - intended for lambda use in a
* {@link MessageListenerAdapter}.
+ * @param the request type.
+ * @param the reply type.
*
* @author Gary Russell
* @since 2.0
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/log4j2/AmqpAppender.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/log4j2/AmqpAppender.java
index ebd3b7f6..9b883608 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/log4j2/AmqpAppender.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/log4j2/AmqpAppender.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 the original author or authors.
+ * Copyright 2016-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -86,12 +86,12 @@ public class AmqpAppender extends AbstractAppender {
public static final String APPLICATION_ID = "applicationId";
/**
- * Key name for the logger category name in the message properties
+ * Key name for the logger category name in the message properties.
*/
public static final String CATEGORY_NAME = "categoryName";
/**
- * Key name for the logger level name in the message properties
+ * Key name for the logger level name in the message properties.
*/
public static final String CATEGORY_LEVEL = "level";
@@ -366,6 +366,9 @@ public class AmqpAppender extends AbstractAppender {
}
+ /**
+ * Manager class for the appender.
+ */
protected static class AmqpManager extends AbstractManager {
/**
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/logback/AmqpAppender.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/logback/AmqpAppender.java
index 1ca9c775..8a24f83d 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/logback/AmqpAppender.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/logback/AmqpAppender.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/retry/RepublishMessageRecoverer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/retry/RepublishMessageRecoverer.java
index 3c85a680..090d3fc0 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/retry/RepublishMessageRecoverer.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/retry/RepublishMessageRecoverer.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2016 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -89,8 +89,8 @@ public class RepublishMessageRecoverer implements MessageRecoverer {
}
/**
- * @see #errorRoutingKeyPrefix(String)
* @param errorRoutingKeyPrefix The prefix (default "error.").
+ * @see #errorRoutingKeyPrefix(String)
*/
public void setErrorRoutingKeyPrefix(String errorRoutingKeyPrefix) {
Assert.notNull(errorRoutingKeyPrefix, "'errorRoutingKeyPrefix' cannot be null");
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/DefaultMessagePropertiesConverter.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/DefaultMessagePropertiesConverter.java
index f6b600c8..40e576c6 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/DefaultMessagePropertiesConverter.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/DefaultMessagePropertiesConverter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -82,6 +82,7 @@ public class DefaultMessagePropertiesConverter implements MessagePropertiesConve
this.convertLongLongStrings = convertLongLongStrings;
}
+ @Override
public MessageProperties toMessageProperties(final BasicProperties source, final Envelope envelope,
final String charset) {
MessageProperties target = new MessageProperties();
@@ -132,6 +133,7 @@ public class DefaultMessagePropertiesConverter implements MessagePropertiesConve
return target;
}
+ @Override
public BasicProperties fromMessageProperties(final MessageProperties source, final String charset) {
BasicProperties.Builder target = new BasicProperties.Builder();
target.headers(this.convertHeadersIfNecessary(source.getHeaders()))
@@ -175,6 +177,8 @@ public class DefaultMessagePropertiesConverter implements MessagePropertiesConve
* Converts a header value to a String if the value type is unsupported by AMQP, also handling values
* nested inside Lists or Maps.
* {@code null} values are passed through, although Rabbit client will throw an IllegalArgumentException.
+ * @param value the value.
+ * @return the converted value.
*/
private Object convertHeaderValueIfNecessary(Object value) {
boolean valid = (value instanceof String) || (value instanceof byte[]) || (value instanceof Boolean)
@@ -209,6 +213,9 @@ public class DefaultMessagePropertiesConverter implements MessagePropertiesConve
* length-driven threshold. If the length is {@link #longStringLimit} bytes or less, a
* String will be returned, otherwise a DataInputStream is returned or the {@link LongString}
* is returned unconverted if {@link #convertLongLongStrings} is true.
+ * @param longString the long string.
+ * @param charset the charset.
+ * @return the converted string.
*/
private Object convertLongString(LongString longString, String charset) {
try {
@@ -227,6 +234,9 @@ public class DefaultMessagePropertiesConverter implements MessagePropertiesConve
/**
* Converts a LongString value using {@link #convertLongString(LongString, String)}, also handling values
* nested in Lists or Maps.
+ * @param value the value.
+ * @param charset the charset.
+ * @return the converted string.
*/
private Object convertLongStringIfNecessary(Object value, String charset) {
if (value instanceof LongString) {
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/PublisherCallbackChannel.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/PublisherCallbackChannel.java
index 5dce975e..89fa9b5f 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/PublisherCallbackChannel.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/PublisherCallbackChannel.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@ public interface PublisherCallbackChannel extends Channel {
String RETURN_CORRELATION_KEY = "spring_listener_return_correlation";
/**
- * Adds a {@link Listener}
+ * Adds a {@link Listener}.
* @param listener The Listener.
*/
void addListener(Listener listener);
@@ -50,7 +50,7 @@ public interface PublisherCallbackChannel extends Channel {
Collection expire(Listener listener, long cutoffTime);
/**
- * Get the {@link PendingConfirm}s count
+ * Get the {@link PendingConfirm}s count.
* @param listener the listener.
* @return Count of the pending confirms.
*/
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/PublisherCallbackChannelImpl.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/PublisherCallbackChannelImpl.java
index aac93fc7..5f7bddb6 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/PublisherCallbackChannelImpl.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/PublisherCallbackChannelImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -133,7 +133,7 @@ public class PublisherCallbackChannelImpl
}
/**
- * Added to the 3.3.x client
+ * Added to the 3.3.x client.
* @since 1.3.3
* @deprecated in the 3.5.3 client
*/
@@ -189,7 +189,7 @@ public class PublisherCallbackChannelImpl
}
/**
- * Added to the 3.3.x client
+ * Added to the 3.3.x client.
* @since 1.3.3
*/
@Override
@@ -421,7 +421,7 @@ public class PublisherCallbackChannelImpl
}
/**
- * Added to the 3.3.x client
+ * Added to the 3.3.x client.
* @since 1.3.3
*/
@Override
diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/ValueExpression.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/ValueExpression.java
index 1da80076..8afe846b 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/ValueExpression.java
+++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/ValueExpression.java
@@ -35,7 +35,7 @@ import org.springframework.util.Assert;
*/
public class ValueExpression implements Expression {
- /** Fixed value of this expression */
+ /** Fixed value of this expression. */
private final V value;
private final Class aClass;
diff --git a/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml
index 100adae9..67c2c8e6 100644
--- a/src/checkstyle/checkstyle-suppressions.xml
+++ b/src/checkstyle/checkstyle-suppressions.xml
@@ -5,6 +5,9 @@
-
+
+
+
+
diff --git a/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml
index 740f39d5..e1f597aa 100644
--- a/src/checkstyle/checkstyle.xml
+++ b/src/checkstyle/checkstyle.xml
@@ -91,31 +91,31 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+