Class Endpoint

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

public class Endpoint extends Object implements MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
See Also:
  • Endpoint
  • Field Details

  • Constructor Details

    • Endpoint

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

      public Endpoint(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.core.net.endpoint.Endpoint 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
    • servers

      public List<ServerEndpoint> servers()
      The servers capable of serving requests for this endpoint.
    • protocols

      public Set<String> protocols()
      Provide the set of protocols the endpoint can accept.
      Returns:
      the set of protocol ids
    • selectServer

      public ServerEndpoint selectServer()
      Select a server.
      Returns:
      the selected server
    • selectServer

      public ServerEndpoint selectServer(String key)
      Select a node, using a routing key
      Parameters:
      key - the routing key
      Returns:
      the selected server
    • newInstance

      public static Endpoint newInstance(io.vertx.core.net.endpoint.Endpoint delegate)
      Creates a new instance of the Endpoint.
    • 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