Package io.servicetalk.client.api
Class ServiceDiscovererEvent.Status
java.lang.Object
io.servicetalk.client.api.ServiceDiscovererEvent.Status
- Enclosing interface:
- ServiceDiscovererEvent<ResolvedAddress>
Status provided by the
ServiceDiscoverer
system that guides the actions of LoadBalancer
upon the
bound ServiceDiscovererEvent.address()
(via ServiceDiscovererEvent
).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServiceDiscovererEvent.Status
Signifies theServiceDiscovererEvent.address()
is available for use in connection establishment.static final ServiceDiscovererEvent.Status
Signifies theServiceDiscovererEvent.address()
is expired and should not be used for establishing new connections.static final ServiceDiscovererEvent.Status
Signifies theServiceDiscovererEvent.address()
is not available for use and all currently established connections should be closed. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
Returns anServiceDiscovererEvent.Status
for the specified name.toString()
-
Field Details
-
AVAILABLE
Signifies theServiceDiscovererEvent.address()
is available for use in connection establishment. -
UNAVAILABLE
Signifies theServiceDiscovererEvent.address()
is not available for use and all currently established connections should be closed. -
EXPIRED
Signifies theServiceDiscovererEvent.address()
is expired and should not be used for establishing new connections. It doesn't necessarily mean that the host should not be used in traffic routing over already established connections as long as they are kept open by the remote peer. The implementations can have different policies in that regard.
-
-
Method Details
-
of
Returns anServiceDiscovererEvent.Status
for the specified name.- Parameters:
name
- the status name.- Returns:
ServiceDiscovererEvent.Status
representing the status for given name.
-
equals
-
hashCode
public int hashCode() -
toString
-