Class ServicePathBuilder
java.lang.Object
io.fluxzero.common.ServicePathBuilder
Utility class for constructing internal service endpoint paths used to route messages to the Fluxzero Runtime.
This class provides consistent path-building logic for various Runtime subsystems such as tracking, event sourcing, scheduling, and search. These paths are typically used by internal clients and websocket-based routing layers.
Examples
ServicePathBuilder.gatewayPath(COMMAND)returns"tracking/publishcommand"ServicePathBuilder.searchPath()returns"search"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the service path for the event sourcing subsystem.static StringgatewayPath(MessageType messageType) Returns the gateway path used to publish messages of the givenMessageType.static StringReturns the service path for the key-value store subsystem.static StringReturns the service path for the scheduling subsystem.static StringReturns the service path for the search/document store subsystem.static StringtrackingPath(MessageType messageType) Returns the tracking path used to read (track) messages of the givenMessageType.
-
Constructor Details
-
ServicePathBuilder
public ServicePathBuilder()
-
-
Method Details
-
gatewayPath
Returns the gateway path used to publish messages of the givenMessageType.This endpoint is used for producers of messages (e.g. commands, events, queries).
- Parameters:
messageType- the type of message to publish- Returns:
- a string like
"tracking/publishcommand"
-
trackingPath
Returns the tracking path used to read (track) messages of the givenMessageType.This endpoint is used by consumers of messages.
- Parameters:
messageType- the type of message to consume- Returns:
- a string like
"tracking/readcommand"
-
eventSourcingPath
Returns the service path for the event sourcing subsystem.- Returns:
- the string
"eventSourcing"
-
keyValuePath
Returns the service path for the key-value store subsystem.This subsystem is largely deprecated and maintained only for backward compatibility.
- Returns:
- the string
"keyValue"
-
searchPath
Returns the service path for the search/document store subsystem.- Returns:
- the string
"search"
-
schedulingPath
Returns the service path for the scheduling subsystem.- Returns:
- the string
"scheduling"
-