Class ReactivePostgresSessionConfiguration
java.lang.Object
net.andreaskluth.session.postgres.ReactivePostgresSessionConfiguration
- All Implemented Interfaces:
org.springframework.scheduling.annotation.SchedulingConfigurer
@Configuration
@EnableScheduling
public class ReactivePostgresSessionConfiguration
extends java.lang.Object
implements org.springframework.scheduling.annotation.SchedulingConfigurer
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_CLEANUP_CRON
-
Constructor Summary
Constructors Constructor Description ReactivePostgresSessionConfiguration(io.vertx.pgclient.PgConnectOptions pgConnectOptions, io.vertx.sqlclient.PoolOptions poolOptions, java.util.Optional<java.time.Clock> clock)
-
Method Summary
Modifier and Type Method Description void
configureTasks(org.springframework.scheduling.config.ScheduledTaskRegistrar scheduledTaskRegistrar)
io.vertx.sqlclient.Pool
pool()
ReactiveVertxSessionRepository
reactivePostgresSessionRepository()
SerializationStrategy
reactiveSerializationStrategy()
-
Field Details
-
DEFAULT_CLEANUP_CRON
public static final java.lang.String DEFAULT_CLEANUP_CRON- See Also:
- Constant Field Values
-
-
Constructor Details
-
ReactivePostgresSessionConfiguration
public ReactivePostgresSessionConfiguration(io.vertx.pgclient.PgConnectOptions pgConnectOptions, io.vertx.sqlclient.PoolOptions poolOptions, java.util.Optional<java.time.Clock> clock)
-
-
Method Details
-
reactiveSerializationStrategy
-
pool
@Bean public io.vertx.sqlclient.Pool pool() -
reactivePostgresSessionRepository
-
configureTasks
public void configureTasks(org.springframework.scheduling.config.ScheduledTaskRegistrar scheduledTaskRegistrar)- Specified by:
configureTasks
in interfaceorg.springframework.scheduling.annotation.SchedulingConfigurer
-