public static final class ServiceDiscovererEvent.Status
extends Object
ServiceDiscoverer system that guides the actions of LoadBalancer upon the
bound ServiceDiscovererEvent.address() (via ServiceDiscovererEvent).| Modifier and Type | Field and Description |
|---|---|
static ServiceDiscovererEvent.Status |
AVAILABLE
Signifies the
ServiceDiscovererEvent.address() is available for use in connection establishment. |
static ServiceDiscovererEvent.Status |
EXPIRED
Signifies the
ServiceDiscovererEvent.address() is expired and should not be used for establishing
new connections. |
static ServiceDiscovererEvent.Status |
UNAVAILABLE
Signifies the
ServiceDiscovererEvent.address() is not available for use and all currently established
connections should be closed. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
static ServiceDiscovererEvent.Status |
of(String name)
Returns an
ServiceDiscovererEvent.Status for the specified name. |
String |
toString() |
public static final ServiceDiscovererEvent.Status AVAILABLE
ServiceDiscovererEvent.address() is available for use in connection establishment.public static final ServiceDiscovererEvent.Status UNAVAILABLE
ServiceDiscovererEvent.address() is not available for use and all currently established
connections should be closed.public static final ServiceDiscovererEvent.Status EXPIRED
ServiceDiscovererEvent.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.public static ServiceDiscovererEvent.Status of(String name)
ServiceDiscovererEvent.Status for the specified name.name - the status name.ServiceDiscovererEvent.Status representing the status for given name.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object