@ConditionalOnMissingBean(name = TicketRegistryCleaner.BEAN_NAME)
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @Lazy(false)
    public TicketRegistryCleaner ticketRegistryCleaner(
        final CasConfigurationProperties casProperties,
        @Qualifier(LockRepository.BEAN_NAME) final LockRepository lockRepository,
        final ConfigurableApplicationContext applicationContext,
        @Qualifier(TicketRegistry.BEAN_NAME) final TicketRegistry ticketRegistry) {
        return new DefaultTicketRegistryCleaner(lockRepository, applicationContext, ticketRegistry);
    }
This is {@link CasCoreTicketsSchedulingConfiguration}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-tickets/src/main/java/org/apereo/cas/config/CasCoreTicketsSchedulingConfiguration.java