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
-
Field Summary
Fields inherited from class io.micronaut.crac.resources.redis.AbstractRedisResource
beanContext
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionRedisNamedConfigResource
(io.micronaut.context.BeanContext beanContext, CracEventPublisher eventPublisher, io.micronaut.configuration.lettuce.AbstractRedisConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeCheckpoint
(org.crac.Context<? extends org.crac.Resource> context) int
getOrder()
Methods inherited from class io.micronaut.crac.resources.redis.AbstractRedisResource
afterRestore, destroyAction
-
Constructor Details
-
RedisNamedConfigResource
public RedisNamedConfigResource(io.micronaut.context.BeanContext beanContext, CracEventPublisher eventPublisher, io.micronaut.configuration.lettuce.AbstractRedisConfiguration configuration)
-
-
Method Details