Class AmqpItemReaderProperties
java.lang.Object
org.springframework.cloud.task.batch.autoconfigure.rabbit.AmqpItemReaderProperties
@ConfigurationProperties(prefix="spring.batch.job.amqpitemreader")
public class AmqpItemReaderProperties
extends Object
Properties to configure a
AmqpItemReader
.- 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 the AmqpItemReader.void
setJsonConverterEnabled
(boolean jsonConverterEnabled) Establishes whether theJackson2JsonMessageConverter
is to be used as a message converter.
-
Constructor Details
-
AmqpItemReaderProperties
public AmqpItemReaderProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()The state of the enabled flag.- Returns:
- true if AmqpItemReader is enabled. Otherwise false.
-
setEnabled
public void setEnabled(boolean enabled) Enables or disables the AmqpItemReader.- Parameters:
enabled
- if true then AmqpItemReader will be enabled. Defaults to false.
-
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.
-