|
64 | 64 | import org.springframework.util.StringUtils;
|
65 | 65 |
|
66 | 66 | /**
|
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 |
70 | 71 | * {@link org.springframework.integration.handler.advice.AbstractRequestHandlerAdvice}.
|
| 72 | + * </p> |
71 | 73 | *
|
72 | 74 | * @author Arnaud Lecollaire
|
73 | 75 | * @author Artem Bilan
|
|
78 | 80 | * @see KinesisAsyncClient#putRecord(PutRecordRequest)
|
79 | 81 | * @see KinesisAsyncClient#putRecords(PutRecordsRequest)
|
80 | 82 | * @see com.amazonaws.handlers.AsyncHandler
|
81 |
| - * @see org.springframework.integration.handler.advice.AbstractRequestHandlerAdvice |
82 | 83 | */
|
83 | 84 | public class KplMessageHandler extends AbstractAwsMessageHandler<Void> implements Lifecycle {
|
84 | 85 |
|
@@ -123,12 +124,10 @@ public void setConverter(Converter<Object, byte[]> converter) {
|
123 | 124 | }
|
124 | 125 |
|
125 | 126 | /**
|
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. |
130 | 130 | * @param backPressureThreshold Defaulted to 0. Set a value greater than 0 to enable backpressure handling.
|
131 |
| - * |
132 | 131 | * @since 3.0.9
|
133 | 132 | */
|
134 | 133 | public void setBackPressureThreshold(long backPressureThreshold) {
|
@@ -434,7 +433,7 @@ private PutRecordRequest buildPutRecordRequest(Message<?> message) {
|
434 | 433 | partitionKey = this.partitionKeyExpression.getValue(getEvaluationContext(), message, String.class);
|
435 | 434 | }
|
436 | 435 | 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." |
438 | 437 | + "Consider configuring this handler with a 'partitionKey'( or 'partitionKeyExpression') " +
|
439 | 438 | "or supply an 'aws_partitionKey' message header.");
|
440 | 439 |
|
|
0 commit comments