Skip to content

Commit 974d0fc

Browse files
GH-249 Javadoc related code review actions fixed.
1 parent 25f98e6 commit 974d0fc

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/main/java/org/springframework/integration/aws/outbound/KplMessageHandler.java

+9-10
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@
6464
import org.springframework.util.StringUtils;
6565

6666
/**
67-
* The {@link AbstractMessageHandler} implementation for the Amazon Kinesis Producer
68-
* Library {@code putRecord(s)}. {@link KplBackpressureException} is thrown When backpressure handling is enabled and
69-
* buffer is at max capacity. The exceptions can be used with
67+
* The {@link AbstractMessageHandler} implementation for the Amazon Kinesis Producer Library {@code putRecord(s)}.
68+
* <p>
69+
* {@link KplBackpressureException} is thrown when backpressure handling is enabled and buffer is at max capacity.
70+
* The exception can be handled with
7071
* {@link org.springframework.integration.handler.advice.AbstractRequestHandlerAdvice}.
72+
* </p>
7173
*
7274
* @author Arnaud Lecollaire
7375
* @author Artem Bilan
@@ -78,7 +80,6 @@
7880
* @see KinesisAsyncClient#putRecord(PutRecordRequest)
7981
* @see KinesisAsyncClient#putRecords(PutRecordsRequest)
8082
* @see com.amazonaws.handlers.AsyncHandler
81-
* @see org.springframework.integration.handler.advice.AbstractRequestHandlerAdvice
8283
*/
8384
public class KplMessageHandler extends AbstractAwsMessageHandler<Void> implements Lifecycle {
8485

@@ -123,12 +124,10 @@ public void setConverter(Converter<Object, byte[]> converter) {
123124
}
124125

125126
/**
126-
* Configure maximum records in flight for handling backpressure. By Default, backpressure handling is not enabled.
127-
* On number of records in flight exceeding the threshold, {@link KplBackpressureException} would be thrown.
128-
* If Backpressure handling is enabled, {@link KplBackpressureException} must be handled.
129-
*
127+
* Configure maximum records in flight for handling backpressure. By default, backpressure handling is not enabled.
128+
* When backpressure handling is enabled and number of records in flight exceeds the threshold, a
129+
* {@link KplBackpressureException} would be thrown.
130130
* @param backPressureThreshold Defaulted to 0. Set a value greater than 0 to enable backpressure handling.
131-
*
132131
* @since 3.0.9
133132
*/
134133
public void setBackPressureThreshold(long backPressureThreshold) {
@@ -434,7 +433,7 @@ private PutRecordRequest buildPutRecordRequest(Message<?> message) {
434433
partitionKey = this.partitionKeyExpression.getValue(getEvaluationContext(), message, String.class);
435434
}
436435
Assert.state(partitionKey != null,
437-
"'partitionKey' must not be null for sending a Kinesis record. "
436+
"'partitionKey' must not be null for sending a Kinesis record."
438437
+ "Consider configuring this handler with a 'partitionKey'( or 'partitionKeyExpression') " +
439438
"or supply an 'aws_partitionKey' message header.");
440439

0 commit comments

Comments
 (0)