Interface Endpoint


@Unstable public interface Endpoint
  • Field Details

  • Method Details

    • servers

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

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

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

      default ServerEndpoint selectServer(Predicate<ServerEndpoint> filter)
      Select a server.
      Returns:
      the selected server
    • selectServer

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

      ServerEndpoint selectServer(Predicate<ServerEndpoint> filter, String key)
      Select a node, using a routing key
      Parameters:
      filter - the view filter
      key - the routing key
      Returns:
      the selected server