| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Mono | |
| protected Connection | |
| protected Connection | Returns: aConnectionconnect timeout (resolution: ns) timeout)Block the |
| public final T | Returns: a newClientTransport referencea consumer observing resolved events doAfterResolve)Set or add a callback called after |
| public T | Returns: a newClientTransport referencea consumer observing connect events doOnConnect)Set or add a callback called when |
| public T | Returns: a newClientTransport referencea consumer observing connected events doOnConnected)Set or add a callback called after |
| public T | Returns: a newClientTransport referencea consumer observing disconnected events doOnDisconnected)Set or add a callback called after |
| public final T | Returns: a newClientTransport referencea consumer observing resolve events doOnResolve)Set or add a callback called before |
| public final T | Returns: a newClientTransport referencea consumer observing resolve error events doOnResolveError)Set or add a callback called if an exception happens while resolving to a |
| public T | Returns: a newClientTransport referencethe host to connect to host)The host to which this client should connect. |
| public T | Returns: a newClientTransport referenceRemove any previously applied Proxy configuration customization. |
| public T | Returns: a newClientTransport referencethe port to connect to port)The port to which this client should connect. |
| public T | Returns: a newClientTransport referencethe proxy configuration callback proxyOptions)Apply a proxy configuration. |
| pack-priv final T | |
| public final T | Returns: a newClientTransport referenceSet up a proxy from the java system properties. |
| pack-priv final T | Returns: a newClientTransport referenceSame as |
| public T | Returns: a newClientTransportA supplier of the address to connect to. remoteAddressSupplier)The address to which this client should connect on each subscribe. |
| public T | Returns: a newClientTransport referencethe new resolver)AddressResolverGroupAssign an |
| public T | Returns: a newClientTransport referencethe name resolver callback nameResolverSpecApply a name resolver configuration. |
| public T | runOn(LoopResources
a new loop resources loopResources, boolean should prefer running on epoll, kqueue or similar instead of java NIO preferNative)Overrides reactor. EventLoopGroup from the LoopResources container.
|
| public Mono |
| ClientTransport | back to summary |
|---|---|
| public ClientTransport() | |
| connect | back to summary |
|---|---|
| protected Mono Connect the
| |
| connectNow | back to summary |
|---|---|
| protected Connection connectNow() Block the
| |
| connectNow | back to summary |
|---|---|
| protected Connection connectNow(Duration timeout) Block the
| |
| doAfterResolve | back to summary |
|---|---|
| public final T doAfterResolve(BiConsumer<? super Connection, ? super SocketAddress> doAfterResolve) Set or add a callback called after
| |
| doOnConnect | back to summary |
|---|---|
| public T doOnConnect(Consumer<? super CONF> doOnConnect) Set or add a callback called when
| |
| doOnConnected | back to summary |
|---|---|
| public T doOnConnected(Consumer<? super Connection> doOnConnected) Set or add a callback called after
| |
| doOnDisconnected | back to summary |
|---|---|
| public T doOnDisconnected(Consumer<? super Connection> doOnDisconnected) Set or add a callback called after
| |
| doOnResolve | back to summary |
|---|---|
| public final T doOnResolve(Consumer<? super Connection> doOnResolve) Set or add a callback called before
| |
| doOnResolveError | back to summary |
|---|---|
| public final T doOnResolveError(BiConsumer<? super Connection, ? super Throwable> doOnResolveError) Set or add a callback called if an exception happens while resolving to a
| |
| host | back to summary |
|---|---|
| public T host(String host) The host to which this client should connect.
| |
| noProxy | back to summary |
|---|---|
| public T noProxy() Remove any previously applied Proxy configuration customization.
| |
| port | back to summary |
|---|---|
| public T port(int port) The port to which this client should connect.
| |
| proxy | back to summary |
|---|---|
| public T proxy(Consumer<? super ProxyProvider. Apply a proxy configuration.
| |
| proxyWithProxyProvider | back to summary |
|---|---|
| pack-priv final T proxyWithProxyProvider(ProxyProvider proxy) | |
| proxyWithSystemProperties | back to summary |
|---|---|
| public final T proxyWithSystemProperties() Set up a proxy from the java system properties. Supports http, https, socks4, socks5 proxies. List of supported system properties https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html
If both
If a
If the system properties do not have a configuration for a proxy, the new
instance returned by this method behaves as if there is no proxy settings,
regardless of configuration of the original
| |
| proxyWithSystemProperties | back to summary |
|---|---|
| pack-priv final T proxyWithSystemProperties(Properties properties) Same as
| |
| remoteAddress | back to summary |
|---|---|
| public T remoteAddress(Supplier<? extends SocketAddress> remoteAddressSupplier) The address to which this client should connect on each subscribe.
| |
| resolver | back to summary |
|---|---|
| public T resolver(AddressResolverGroup<?> resolver) Assign an
| |
| resolver | back to summary |
|---|---|
| public T resolver(Consumer<NameResolverProvider. Apply a name resolver configuration.
| |
| runOn | back to summary |
|---|---|
| public T runOn(LoopResources loopResources, boolean preferNative) Overrides reactor. Doc from reactor. Run IO loops on a supplied
| |
| warmup | back to summary |
|---|---|
| public Mono Based on the actual configuration, returns a
connect operation absorbs the extra time needed to initialize and
load the resources.
| |