RoutexRefreshAsyncClient

constructor(baseUrl: Url = DEFAULT_BASE_URL, httpTransport: HttpTransport = defaultHttpTransport(), executor: Executor = ForkJoinPool.commonPool(), userInSession: UserInSession? = null)

Construct a client.

Parameters

baseUrl

Base URL of the YAXI API. Defaults to the production endpoint.

httpTransport

HTTP transport. Defaults to a Ktor engine selected per platform.

executor

Executor backing every emitted CompletableFuture. Defaults to ForkJoinPool.commonPool; supply a dedicated pool to isolate Routex work from the rest of the JVM.

userInSession

Indicates a user is in session for every service call this client makes, lifting the bank's limit on requests without one (see UserInSession). null (default) makes calls without a user in session.


constructor(baseUrl: String, httpTransport: HttpTransport = defaultHttpTransport(), executor: Executor = ForkJoinPool.commonPool(), userInSession: UserInSession? = null)

Convenience overload that parses baseUrl as a Ktor Url.