skip to Main Content

Error invoking scheduled task Error instantiating bean of type [io.micronaut.configuration.lettuce.health.RedisHealthIndicator]

I have the following problem when running this schedule. @Singleton public class TaskScheduler { private static final Logger LOG = LoggerFactory.getLogger(TaskScheduler.class); @Inject private BuildLayerJob buildLayerJob; @Scheduled(fixedDelay = "30s", initialDelay = "30s") public void loadRegistriesDescriptions(){ try { LOG.info("Cargando lista de registries…

VIEW QUESTION

Set connection parameters in RedisConnectionFactory

I have simple Redis client based on Spring below. As default it connects to local host, but I need to set different host and port. I suppose I can do it in function below: @Bean RedisMessageListenerContainer container(RedisConnectionFactory connectionFactory,MessageListenerAdapter listenerAdapter) {…

VIEW QUESTION
Back To Top
Search