|
40 | 40 | import org.springframework.kafka.support.KafkaHeaders; |
41 | 41 | import org.springframework.kafka.support.converter.MessagingMessageConverter; |
42 | 42 | import org.springframework.kafka.support.converter.RecordMessageConverter; |
| 43 | +import org.springframework.lang.Nullable; |
43 | 44 | import org.springframework.messaging.Message; |
44 | 45 | import org.springframework.util.Assert; |
45 | 46 |
|
|
51 | 52 | * |
52 | 53 | * @author Mark Norkin |
53 | 54 | * @author Adrian Chlebosz |
| 55 | + * @author Juhyun Kim |
54 | 56 | * |
55 | 57 | * @since 2.3.0 |
56 | 58 | */ |
@@ -92,19 +94,19 @@ public <T> Mono<SenderResult<T>> sendTransactionally(SenderRecord<K, V, T> recor |
92 | 94 | return sendTransactionally.single(); |
93 | 95 | } |
94 | 96 |
|
95 | | - public Mono<SenderResult<Void>> send(String topic, V value) { |
| 97 | + public Mono<SenderResult<Void>> send(String topic, @Nullable V value) { |
96 | 98 | return send(new ProducerRecord<>(topic, value)); |
97 | 99 | } |
98 | 100 |
|
99 | | - public Mono<SenderResult<Void>> send(String topic, K key, V value) { |
| 101 | + public Mono<SenderResult<Void>> send(String topic, K key, @Nullable V value) { |
100 | 102 | return send(new ProducerRecord<>(topic, key, value)); |
101 | 103 | } |
102 | 104 |
|
103 | | - public Mono<SenderResult<Void>> send(String topic, int partition, K key, V value) { |
| 105 | + public Mono<SenderResult<Void>> send(String topic, int partition, K key, @Nullable V value) { |
104 | 106 | return send(new ProducerRecord<>(topic, partition, key, value)); |
105 | 107 | } |
106 | 108 |
|
107 | | - public Mono<SenderResult<Void>> send(String topic, int partition, long timestamp, K key, V value) { |
| 109 | + public Mono<SenderResult<Void>> send(String topic, int partition, long timestamp, K key, @Nullable V value) { |
108 | 110 | return send(new ProducerRecord<>(topic, partition, timestamp, key, value)); |
109 | 111 | } |
110 | 112 |
|
|
0 commit comments