Class EndpointResolver

java.lang.Object
io.vertx.mutiny.core.net.endpoint.EndpointResolver
All Implemented Interfaces:
MutinyDelegate

public class EndpointResolver extends Object implements MutinyDelegate
A resolver for endpoints.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Julien Viet
See Also:
  • EndpointResolver
  • Field Details

  • Constructor Details

    • EndpointResolver

      public EndpointResolver(io.vertx.core.net.endpoint.EndpointResolver delegate)
      Create a new instance of EndpointResolver delegating to the given (non-null) instance of EndpointResolver.
    • EndpointResolver

      public EndpointResolver(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.core.net.endpoint.EndpointResolver getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • resolveEndpoint

      @CheckReturnValue public io.smallrye.mutiny.Uni<Endpoint> resolveEndpoint(io.vertx.core.net.Address address)
      Resolver an endpoint for the specified address

      Unlike the bare Vert.x variant, this method returns a Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.

      Don't forget to subscribe on it to trigger the operation.

      Parameters:
      address - the address to lookup
      Returns:
      A Uni representing the asynchronous result of this operation.
      See Also:
      • EndpointResolver.resolveEndpoint(Address)
    • resolveEndpointAndAwait

      public Endpoint resolveEndpointAndAwait(io.vertx.core.net.Address address)
      Resolver an endpoint for the specified address

      Unlike the bare Vert.x variant, this method returns a Endpoint. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      Parameters:
      address - the address to lookup
      Returns:
      The operation result
      See Also:
      • EndpointResolver.resolveEndpoint(Address)
    • resolveEndpointAndForget

      public EndpointResolver resolveEndpointAndForget(io.vertx.core.net.Address address)
      Resolver an endpoint for the specified address

      Unlike the bare Vert.x variant, this method ignores the Endpoint result or any failure.

      Parameters:
      address - the address to lookup
      Returns:
      The current instance to chain operations if needed.
      See Also:
      • EndpointResolver.resolveEndpoint(Address)
    • newInstance

      public static EndpointResolver newInstance(io.vertx.core.net.endpoint.EndpointResolver delegate)
      Creates a new instance of the EndpointResolver.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object