HttpCommandCaller

constructor(endpoints: Map<String, URI>, service: String? = null, client: HttpClient = client(), timeout: Duration = DEFAULT_TIMEOUT, contracts: List<Manifest> = classPathContracts())

The caller of the contexts' internal ports at the fixed endpoints, as the service named service, on client, each call answered within timeout and routed as contracts list its command. It takes fixed URLs where the other takes a resolver, and has one timeout for every context.


constructor(endpoints: EndpointResolver, service: String?, client: HttpClient, timeout: Duration, timeouts: Map<String, Duration> = emptyMap(), contracts: List<Manifest> = classPathContracts(), defaultWait: Duration = WaitPlan.DEFAULT_TIMEOUT, silent: SilentPeers = SilentPeers())

The caller of the contexts' internal ports endpoints finds, as the service named service, each call answered within its context's timeout of timeouts, else timeout, and routed as contracts list its command. A call that goes on with no wait waits defaultWait, the calling node's wow.wait.default-timeout. It builds what the internal constructor takes: the transport from the endpoints, and the command index from the contracts.