Package de.stklcode.pubtrans.ura
Class UraClientConfiguration.Builder
java.lang.Object
de.stklcode.pubtrans.ura.UraClientConfiguration.Builder
- Enclosing class:
- UraClientConfiguration
Builder for
UraClientConfiguration objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Finally build the configuration object.withConnectTimeout(Duration connectTimeout) Specify a custom connection timeout duration.withInstantPath(String instantPath) Specify a custom path to the instant API.withStreamPath(String streamPath) Specify a custom path to the stream API.withTimeout(Duration timeout) Specify a custom timeout duration.
-
Method Details
-
withInstantPath
Specify a custom path to the instant API.- Parameters:
instantPath- Instant endpoint path.- Returns:
- The builder.
-
withStreamPath
Specify a custom path to the stream API.- Parameters:
streamPath- Stream endpoint path.- Returns:
- The builder.
-
withConnectTimeout
Specify a custom connection timeout duration.- Parameters:
connectTimeout- Timeout duration.- Returns:
- The builder.
-
withTimeout
Specify a custom timeout duration.- Parameters:
timeout- Timeout duration.- Returns:
- The builder.
-
build
Finally build the configuration object.- Returns:
- The configuration.
-