Class RedisNamedConfigResource

java.lang.Object
io.micronaut.crac.resources.redis.AbstractRedisResource<io.lettuce.core.RedisClient>
io.micronaut.crac.resources.redis.RedisNamedConfigResource
All Implemented Interfaces:
io.micronaut.core.order.Ordered, OrderedResource, org.crac.Resource

@EachBean(io.micronaut.configuration.lettuce.AbstractRedisConfiguration.class) @Requires(classes=io.micronaut.configuration.lettuce.AbstractRedisConfiguration.class) @Requires(bean=CracResourceRegistrar.class) @Requires(property="crac.redis.connection-enabled",defaultValue="true",value="true") public class RedisNamedConfigResource extends AbstractRedisResource<io.lettuce.core.RedisClient>
Destroys Redis connection beans for a named configuration. This also picks up the Default configuration, as that is a named bean with the name "application".
Since:
1.2.3
Author:
Tim Yates
  • Constructor Details

    • RedisNamedConfigResource

      public RedisNamedConfigResource(io.micronaut.context.BeanContext beanContext, CracEventPublisher eventPublisher, io.micronaut.configuration.lettuce.AbstractRedisConfiguration configuration)
  • Method Details

    • beforeCheckpoint

      public void beforeCheckpoint(org.crac.Context<? extends org.crac.Resource> context) throws Exception
      Throws:
      Exception
    • getOrder

      public int getOrder()