thenService

fun <T> NodeBuilder<T, *>.thenService(label: String, delayProvider: DelayProvider, numServers: Int = 1): RegularNodeBuilder<ServiceNode<T>, T, ChannelType.Push>

Attaches a service node into the builder chain, which can then be continued after this call.

Simulates a service location that provides some delay, likely to be used in combination with other nodes. For example:

  • combined with a split node -> ASC unloading a port vehicle

  • combined with a merge node -> ASC loading a port vehicle

Parameters

numServers

Defines how many parallel servers are present in the service node. Doubling numServers functionally halves the delay of the service node