Package io.gravitee.gateway.api.endpoint
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEndpointAvailabilityListener(EndpointAvailabilityListener listener)booleanavailable()Can the endpoint be reach ?Connectorconnector()TheConnectorused to invoke the endpoint.Stringname()Endpoint name.booleanprimary()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.voidremoveEndpointAvailabilityListener(EndpointAvailabilityListener listener)Stringtarget()Endpoint target.intweight()Endpoint weight.
-
-
-
Method Detail
-
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()
TheConnectorused to invoke the endpoint.- Returns:
Connectorused 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)
-
-