public class KnotxFlowSettings extends Object
| Constructor and Description |
|---|
KnotxFlowSettings()
Default constructor
|
KnotxFlowSettings(io.vertx.core.json.JsonObject json)
Create an settings from JSON
|
KnotxFlowSettings(KnotxFlowSettings other)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAssembler() |
List<RepositoryEntry> |
getRepositories() |
String |
getResponseProvider() |
Map<String,MethodRoutingEntries> |
getRouting() |
String |
getSplitter() |
Optional<RepositoryEntry> |
repositoryForPath(String path) |
KnotxFlowSettings |
setAssembler(String assembler)
Sets the event bus address of the assembler verticle.
|
KnotxFlowSettings |
setRepositories(List<RepositoryEntry> repositoryAddressMapping)
Sets the list of RepositoryEntry items
|
KnotxFlowSettings |
setResponseProvider(String responseProvider)
Sets the event bus address of the Custom Flow' response provider verticle.
|
KnotxFlowSettings |
setRouting(Map<String,MethodRoutingEntries> engineRouting)
Set of HTTP method based routing entries, describing communication between Knots
|
KnotxFlowSettings |
setSplitter(String splitter)
Sets the event bus address of the splitter verticle.
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public KnotxFlowSettings()
public KnotxFlowSettings(KnotxFlowSettings other)
other - the instance to copypublic KnotxFlowSettings(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public Optional<RepositoryEntry> repositoryForPath(String path)
public List<RepositoryEntry> getRepositories()
public KnotxFlowSettings setRepositories(List<RepositoryEntry> repositoryAddressMapping)
repositoryAddressMapping - list of RepositoryEntrypublic String getSplitter()
public KnotxFlowSettings setSplitter(String splitter)
splitter - event bus addresspublic String getAssembler()
public KnotxFlowSettings setAssembler(String assembler)
assembler - event bus addresspublic String getResponseProvider()
public KnotxFlowSettings setResponseProvider(String responseProvider)
responseProvider - event bus addresspublic Map<String,MethodRoutingEntries> getRouting()
public KnotxFlowSettings setRouting(Map<String,MethodRoutingEntries> engineRouting)
routing": {"GET": {}, "POST": {}}engineRouting - map of HTTP Method to MethodRoutingEntries itemsCopyright © 2016–2020. All rights reserved.