Class PulsarBatchMessagingMessageConverter<T>
java.lang.Object
org.springframework.pulsar.support.converter.PulsarBatchMessagingMessageConverter<T>
- Type Parameters:
T
- message type.
- All Implemented Interfaces:
PulsarBatchMessageConverter<T>
,MessageConverter
public class PulsarBatchMessagingMessageConverter<T>
extends Object
implements PulsarBatchMessageConverter<T>
Batch records message converter.
- Author:
- Soby Chacko
-
Constructor Summary
ConstructorDescriptionPulsarBatchMessagingMessageConverter
(PulsarRecordMessageConverter<T> recordConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
convert
(org.apache.pulsar.client.api.Message<T> record, Type type, List<Exception> conversionFailures) protected Object
extractAndConvertValue
(org.apache.pulsar.client.api.Message<T> record, Type type) fromMessage
(org.apache.pulsar.client.api.Messages<T> message, String defaultTopic) Message<?>
toMessage
(List<org.apache.pulsar.client.api.Message<T>> records, org.apache.pulsar.client.api.Consumer<T> consumer, Type type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.pulsar.support.converter.PulsarBatchMessageConverter
getRecordMessageConverter
-
Constructor Details
-
PulsarBatchMessagingMessageConverter
public PulsarBatchMessagingMessageConverter() -
PulsarBatchMessagingMessageConverter
-
-
Method Details
-
toMessage
public Message<?> toMessage(List<org.apache.pulsar.client.api.Message<T>> records, org.apache.pulsar.client.api.Consumer<T> consumer, Type type) - Specified by:
toMessage
in interfacePulsarBatchMessageConverter<T>
-
extractAndConvertValue
-
convert
-
fromMessage
- Specified by:
fromMessage
in interfacePulsarBatchMessageConverter<T>
-