Class GlobalCracContextProvider

java.lang.Object
io.micronaut.crac.GlobalCracContextProvider
All Implemented Interfaces:
CracContextProvider

@Singleton public class GlobalCracContextProvider extends Object implements CracContextProvider
Gets a Global Context through Core.getGlobalContext().
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • GlobalCracContextProvider

      public GlobalCracContextProvider()
  • Method Details

    • provideContext

      @NonNull public @NonNull org.crac.Context<org.crac.Resource> provideContext()
      Specified by:
      provideContext in interface CracContextProvider
      Returns:
      Gets the Context for checkpoint/restore notifications.