Class AbstractRedisResource<T>
java.lang.Object
io.micronaut.crac.resources.redis.AbstractRedisResource<T>
- Type Parameters:
- T- The type of resource
- All Implemented Interfaces:
- io.micronaut.core.order.Ordered,- OrderedResource,- org.crac.Resource
- Direct Known Subclasses:
- RedisCacheResource,- RedisNamedConfigResource
Redis resources are removed from the context, so they are automatically recreated on restore.
- Since:
- 1.2.1
- Author:
- Tim Yates
- 
Field SummaryFieldsFields inherited from interface io.micronaut.core.order.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractRedisResource(io.micronaut.context.BeanContext beanContext) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterRestore(org.crac.Context<? extends org.crac.Resource> context) protected longdestroyAction(T resource, org.slf4j.Logger logger, String message) Destroy the bean.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.order.OrderedgetOrderMethods inherited from interface org.crac.ResourcebeforeCheckpoint
- 
Field Details- 
beanContextprotected final io.micronaut.context.BeanContext beanContext
 
- 
- 
Constructor Details- 
AbstractRedisResourceprotected AbstractRedisResource(io.micronaut.context.BeanContext beanContext) 
 
- 
- 
Method Details- 
destroyActionDestroy the bean.- Parameters:
- resource- the bean to destroy
- logger- the logger to use
- message- the log message
- Returns:
- the time taken to destroy the bean
 
- 
afterRestore- Specified by:
- afterRestorein interface- org.crac.Resource
- Throws:
- Exception
 
 
-