Interface Endpoint

All Known Subinterfaces:
ProxyEndpoint
All Known Implementing Classes:
AbstractEndpoint

public interface Endpoint
Author:
David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
  • Method Details

    • name

      String name()
      Endpoint name.
      Returns:
      Endpoint name.
    • target

      String target()
      Endpoint target.
      Returns:
      Endpoint target.
    • weight

      int weight()
      Endpoint weight.
      Returns:
    • connector

      Connector connector()
      The Connector used to invoke the endpoint.
      Returns:
      Connector used to invoke the endpoint.
    • available

      boolean available()
      Can the endpoint be reach ?
      Returns:
    • primary

      boolean primary()
      When an endpoint is marked as a secondary endpoint, it can be selected by the load-balancer only when no more primary endpoint are available.
      Returns:
    • addEndpointAvailabilityListener

      void addEndpointAvailabilityListener(EndpointAvailabilityListener listener)
    • removeEndpointAvailabilityListener

      void removeEndpointAvailabilityListener(EndpointAvailabilityListener listener)