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 classCoordinator builder. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CoordinatorService.Builderbuilder()Create a new fluent API builder.static CoordinatorServicecreate()Create a new Lra coordinator.Get LRA by lraId.voidUpdates the routing to add handlers of this service.voidshutdown()Gracefully shutdown coordinator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:HttpServiceUpdates the routing to add handlers of this service.- Specified by:
routingin 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
-