java.lang.Object
io.helidon.lra.coordinator.CoordinatorService
- All Implemented Interfaces:
HttpService
,ServerLifecycle
LRA coordinator with Narayana like rest api.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Coordinator builder. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CoordinatorService.Builder
builder()
Create a new fluent API builder.static CoordinatorService
create()
Create a new Lra coordinator.Get LRA by lraId.void
Updates the routing to add handlers of this service.void
shutdown()
Gracefully shutdown coordinator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStart, afterStop, beforeStart
-
Field Details
-
CONFIG_PREFIX
Configuration prefix.- See Also:
-
-
Method Details
-
create
Create a new Lra coordinator.- Returns:
- coordinator
-
builder
Create a new fluent API builder.- Returns:
- a new builder
-
shutdown
public void shutdown()Gracefully shutdown coordinator. -
routing
Description copied from interface:HttpService
Updates the routing to add handlers of this service.- Specified by:
routing
in interfaceHttpService
- Parameters:
rules
- to update
-
lra
Get LRA by lraId.- Parameters:
lraId
- without coordinator uri prefix- Returns:
- LRA when managed by this coordinator or null
-