Class AmqpItemWriterProperties
java.lang.Object
org.springframework.cloud.task.batch.autoconfigure.rabbit.AmqpItemWriterProperties
@ConfigurationProperties(prefix="spring.batch.job.amqpitemwriter")
public class AmqpItemWriterProperties
extends Object
- Since:
- 2.3
- Author:
- Glenn Renfro
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The state of the enabled flag.boolean
States whether theJackson2JsonMessageConverter
is used as a message converter.void
setEnabled
(boolean enabled) Enables or disables theAmqpItemWriter
.void
setJsonConverterEnabled
(boolean jsonConverterEnabled) Establishes whether theJackson2JsonMessageConverter
is to be used as a message converter.
-
Constructor Details
-
AmqpItemWriterProperties
public AmqpItemWriterProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()The state of the enabled flag.- Returns:
true
ifAmqpItemWriter
is enabled. Otherwisefalse
.
-
setEnabled
public void setEnabled(boolean enabled) Enables or disables theAmqpItemWriter
.- Parameters:
enabled
- iftrue
thenAmqpItemWriter
is enabled. Defaults tofalse
.
-
isJsonConverterEnabled
public boolean isJsonConverterEnabled()States whether theJackson2JsonMessageConverter
is used as a message converter.- Returns:
- true if enabled else false.
-
setJsonConverterEnabled
public void setJsonConverterEnabled(boolean jsonConverterEnabled) Establishes whether theJackson2JsonMessageConverter
is to be used as a message converter.- Parameters:
jsonConverterEnabled
- true if it is to be enabled else false. Defaults to true.
-