Package io.micronaut.crac
Class OrderedCracResourceRegistrar
java.lang.Object
io.micronaut.crac.OrderedCracResourceRegistrar
- All Implemented Interfaces:
CracResourceRegistrar
@Singleton
public class OrderedCracResourceRegistrar
extends Object
implements CracResourceRegistrar
Registers all defined Resources for Coordinated Restore at Checkpoint.
- Since:
- 1.0.0
- Author:
- Tim Yates
-
Constructor Summary
ConstructorDescriptionOrderedCracResourceRegistrar
(List<OrderedResource> resources, CracContextProvider contextProvider) Collects together all available CRaC resources in the order specified. -
Method Summary
Modifier and TypeMethodDescriptionvoid
For each known resource, register it with the CRaC context.
-
Constructor Details
-
OrderedCracResourceRegistrar
public OrderedCracResourceRegistrar(List<OrderedResource> resources, CracContextProvider contextProvider) Collects together all available CRaC resources in the order specified.- Parameters:
resources
- The ordered registered CRaC resourcescontextProvider
- CRaC context provider
-
-
Method Details
-
registerResources
public void registerResources()For each known resource, register it with the CRaC context.- Specified by:
registerResources
in interfaceCracResourceRegistrar
-