public static final class ReactorNetworkingClient.Builder extends Object
ReactorNetworkingClient.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ReactorNetworkingClient |
build()
Builds a new
ReactorNetworkingClient. |
ReactorNetworkingClient.Builder |
connectionContext(ConnectionContext connectionContext)
Initializes the value for the
connectionContext attribute. |
ReactorNetworkingClient.Builder |
from(ReactorNetworkingClient instance)
Fill a builder with attribute values from the provided
ReactorNetworkingClient instance. |
ReactorNetworkingClient.Builder |
root(reactor.core.publisher.Mono<String> root)
Initializes the value for the
root attribute. |
ReactorNetworkingClient.Builder |
tokenProvider(TokenProvider tokenProvider)
Initializes the value for the
tokenProvider attribute. |
public final ReactorNetworkingClient.Builder from(ReactorNetworkingClient instance)
ReactorNetworkingClient instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ReactorNetworkingClient.Builder connectionContext(ConnectionContext connectionContext)
connectionContext attribute.connectionContext - The value for connectionContextthis builder for use in a chained invocationpublic final ReactorNetworkingClient.Builder root(reactor.core.publisher.Mono<String> root)
root attribute.
If not set, this attribute will have a default value as returned by the initializer of root.
root - The value for rootthis builder for use in a chained invocationpublic final ReactorNetworkingClient.Builder tokenProvider(TokenProvider tokenProvider)
tokenProvider attribute.tokenProvider - The value for tokenProviderthis builder for use in a chained invocationpublic ReactorNetworkingClient build()
ReactorNetworkingClient.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.