Class EndpointResolver
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Julien Viet
- See Also:
-
EndpointResolver
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEndpointResolver(io.vertx.core.net.endpoint.EndpointResolver delegate) Create a new instance ofEndpointResolverdelegating to the given (non-null) instance ofEndpointResolver.EndpointResolver(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanio.vertx.core.net.endpoint.EndpointResolverGet the delegate instance.inthashCode()static EndpointResolvernewInstance(io.vertx.core.net.endpoint.EndpointResolver delegate) Creates a new instance of theEndpointResolver.io.smallrye.mutiny.Uni<Endpoint>resolveEndpoint(io.vertx.core.net.Address address) Resolver an endpoint for the specifiedaddressresolveEndpointAndAwait(io.vertx.core.net.Address address) Resolver an endpoint for the specifiedaddressresolveEndpointAndForget(io.vertx.core.net.Address address) Resolver an endpoint for the specifiedaddresstoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
EndpointResolver
public EndpointResolver(io.vertx.core.net.endpoint.EndpointResolver delegate) Create a new instance ofEndpointResolverdelegating to the given (non-null) instance ofEndpointResolver. -
EndpointResolver
-
-
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:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
resolveEndpoint
@CheckReturnValue public io.smallrye.mutiny.Uni<Endpoint> resolveEndpoint(io.vertx.core.net.Address address) Resolver an endpoint for the specifiedaddressUnlike 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
Unirepresenting the asynchronous result of this operation. - See Also:
-
EndpointResolver.resolveEndpoint(Address)
-
resolveEndpointAndAwait
Resolver an endpoint for the specifiedaddressUnlike 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 aRuntimeException).- Parameters:
address- the address to lookup- Returns:
- The operation result
- See Also:
-
EndpointResolver.resolveEndpoint(Address)
-
resolveEndpointAndForget
Resolver an endpoint for the specifiedaddressUnlike the bare Vert.x variant, this method ignores the
Endpointresult or any failure.- Parameters:
address- the address to lookup- Returns:
- The current instance to chain operations if needed.
- See Also:
-
EndpointResolver.resolveEndpoint(Address)
-
newInstance
Creates a new instance of theEndpointResolver. -
hashCode
public int hashCode() -
equals
-
toString
-