T
- The type of resource@Internal public abstract class AbstractRedisResource<T> extends java.lang.Object implements OrderedResource
Modifier and Type | Field and Description |
---|---|
protected io.micronaut.context.BeanContext |
beanContext |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRedisResource(io.micronaut.context.BeanContext beanContext) |
Modifier and Type | Method and Description |
---|---|
void |
afterRestore(org.crac.Context<? extends org.crac.Resource> context) |
protected long |
destroyAction(T resource,
org.slf4j.Logger logger,
java.lang.String message)
Destroy the bean.
|
protected AbstractRedisResource(io.micronaut.context.BeanContext beanContext)
protected long destroyAction(T resource, org.slf4j.Logger logger, java.lang.String message)
resource
- the bean to destroylogger
- the logger to usemessage
- the log messagepublic void afterRestore(org.crac.Context<? extends org.crac.Resource> context) throws java.lang.Exception
afterRestore
in interface org.crac.Resource
java.lang.Exception