Package com.ecom.winners.configurations
Class SelectWinner
java.lang.Object
com.ecom.winners.configurations.SelectWinner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.item.database.JdbcCursorItemReader<User>
reader
(UserRepository userRepository, DataSource dataSource, float threshold) org.springframework.batch.core.Step
selectLuckyWinner
(org.springframework.batch.core.repository.JobRepository jobRepository, org.springframework.transaction.PlatformTransactionManager transactionManager, org.springframework.batch.item.kafka.KafkaItemWriter<String, UserDTO> writer, org.springframework.batch.item.database.JdbcCursorItemReader<User> reader)
-
Constructor Details
-
SelectWinner
public SelectWinner()
-
-
Method Details
-
reader
@Bean(name="queryLuckyWinner") public org.springframework.batch.item.database.JdbcCursorItemReader<User> reader(UserRepository userRepository, DataSource dataSource, @Value("${select.winner.amount.threshold}") float threshold) -
processor
-
writer
-
selectLuckyWinner
@Bean(name="selectLuckyWinner") public org.springframework.batch.core.Step selectLuckyWinner(org.springframework.batch.core.repository.JobRepository jobRepository, org.springframework.transaction.PlatformTransactionManager transactionManager, org.springframework.batch.item.kafka.KafkaItemWriter<String, UserDTO> writer, org.springframework.batch.item.database.JdbcCursorItemReader<User> reader)
-