Package org.springframework.pulsar.core
Class ProducerBuilderConfigurationUtil
java.lang.Object
org.springframework.pulsar.core.ProducerBuilderConfigurationUtil
@Deprecated(since="1.1.0",
forRemoval=true)
public final class ProducerBuilderConfigurationUtil
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 1.1.0 for removal in 1.2.0
Utility methods to help load configuration into a
ProducerBuilder
.
The main purpose is to work around the underlying
Pulsar issue where
ProducerBuilder.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
Modifier and TypeMethodDescriptionstatic <T> void
Deprecated, for removal: This API element is subject to removal in a future version.Configures the specified properties onto the specified builder in a manner that loads non-serializable properties.
-
Method Details
-
loadConf
public static <T> void loadConf(org.apache.pulsar.client.api.ProducerBuilder<T> builder, Map<String, Object> properties) Deprecated, for removal: This API element is subject to removal in a future version.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
-