Class CoordinatorService

java.lang.Object
io.helidon.lra.coordinator.CoordinatorService
All Implemented Interfaces:
HttpService, ServerLifecycle

public class CoordinatorService extends Object implements HttpService
LRA coordinator with Narayana like rest api.
  • Field Details

  • Method Details

    • create

      public static CoordinatorService create()
      Create a new Lra coordinator.
      Returns:
      coordinator
    • builder

      public static CoordinatorService.Builder builder()
      Create a new fluent API builder.
      Returns:
      a new builder
    • shutdown

      public void shutdown()
      Gracefully shutdown coordinator.
    • routing

      public void routing(HttpRules rules)
      Description copied from interface: HttpService
      Updates the routing to add handlers of this service.
      Specified by:
      routing in interface HttpService
      Parameters:
      rules - to update
    • lra

      public Lra lra(String lraId)
      Get LRA by lraId.
      Parameters:
      lraId - without coordinator uri prefix
      Returns:
      LRA when managed by this coordinator or null