Package org.springframework.pulsar.core
Class ConsumerBuilderConfigurationUtil
java.lang.Object
org.springframework.pulsar.core.ConsumerBuilderConfigurationUtil
Utility methods to help load configuration into a
ConsumerBuilder
.
The main purpose is to work around the underlying
Pulsar issue where
ConsumerBuilder.loadConf(java.util.Map<java.lang.String, java.lang.Object>)
sets @JsonIgnore
fields to null.
Should be removed once the above issue is fixed.
- Author:
- Chris Bono
-
Method Summary
-
Method Details
-
loadConf
public static <T> void loadConf(org.apache.pulsar.client.api.ConsumerBuilder<T> builder, Map<String, Object> properties) Configures the specified properties onto the specified builder in a manner that loads non-serializable properties. See Pulsar PR.- Type Parameters:
T
- the payload type- Parameters:
builder
- the builderproperties
- the properties to set on the builder
-