- All Known Subinterfaces:
ProxyEndpoint
- All Known Implementing Classes:
AbstractEndpoint
public interface Endpoint
- Author:
- David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
-
Method Summary
void
boolean
Can the endpoint be reach ?
boolean
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.
void
int
-
Method Details
-
name
Endpoint name.
- Returns:
- Endpoint name.
-
target
Endpoint target.
- Returns:
- Endpoint target.
-
weight
int weight()
Endpoint weight.
- Returns:
-
connector
- 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
-
removeEndpointAvailabilityListener