Class PgcopySinkConfiguration
java.lang.Object
org.springframework.cloud.stream.app.pgcopy.sink.PgcopySinkConfiguration
@Configuration
@EnableScheduling
@EnableConfigurationProperties(PgcopySinkProperties.class)
public class PgcopySinkConfiguration
extends Object
Configuration class for the PostgreSQL CopyManager.
- Author:
- Thomas Risberg, Janne Valkealahti, Chris Bono
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondatasetSinkMessageHandler
(JdbcTemplate jdbcTemplate, PlatformTransactionManager platformTransactionManager) jdbcTemplate
(DataSource dataSource) nonBootDataSourceInitializer
(DataSource dataSource, ResourceLoader resourceLoader) pgcopyConsumer
(MessageHandler aggregatingMessageHandler) toSink()
-
Constructor Details
-
PgcopySinkConfiguration
public PgcopySinkConfiguration()
-
-
Method Details
-
pgcopyConsumer
-
toSink
-
datasetSinkMessageHandler
@Bean @ServiceActivator(inputChannel="toSink") public MessageHandler datasetSinkMessageHandler(JdbcTemplate jdbcTemplate, PlatformTransactionManager platformTransactionManager) -
nonBootDataSourceInitializer
@ConditionalOnProperty("pgcopy.initialize") @Bean public DataSourceInitializer nonBootDataSourceInitializer(DataSource dataSource, ResourceLoader resourceLoader) -
jdbcTemplate
-