Class RedisCacheResource
java.lang.Object
io.micronaut.crac.resources.redis.AbstractRedisResource<io.micronaut.configuration.lettuce.cache.RedisCache>
io.micronaut.crac.resources.redis.RedisCacheResource
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,OrderedResource
,org.crac.Resource
@EachBean(io.micronaut.configuration.lettuce.cache.RedisCache.class)
@Requires(classes=io.micronaut.configuration.lettuce.cache.RedisCache.class) @Requires(bean=CracResourceRegistrar.class) @Requires(property="crac.redis.cache-enabled",defaultValue="true",value="true")
public class RedisCacheResource
extends AbstractRedisResource<io.micronaut.configuration.lettuce.cache.RedisCache>
Destroys any RedisCache beans before checkpointing.
- Since:
- 1.2.1
- 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
ConstructorDescriptionRedisCacheResource
(io.micronaut.context.BeanContext beanContext, CracEventPublisher eventPublisher, io.micronaut.configuration.lettuce.cache.RedisCache redisCache) -
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeCheckpoint
(org.crac.Context<? extends org.crac.Resource> context) Methods inherited from class io.micronaut.crac.resources.redis.AbstractRedisResource
afterRestore, destroyAction
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Constructor Details
-
RedisCacheResource
public RedisCacheResource(io.micronaut.context.BeanContext beanContext, CracEventPublisher eventPublisher, io.micronaut.configuration.lettuce.cache.RedisCache redisCache)
-
-
Method Details