Package io.servicetalk.loadbalancer
Interface LoadBalancerObserver.HostObserver
- Enclosing interface:
- LoadBalancerObserver
public static interface LoadBalancerObserver.HostObserver
An observer for
Host events.-
Method Summary
Modifier and TypeMethodDescriptionvoidonActiveHostRemoved(int connectionCount) Callback for when a host is removed by service discovery.voidonExpiredHostRemoved(int connectionCount) Callback for when an expired host is removed.voidonExpiredHostRevived(int connectionCount) Callback for when an expired host is returned to an active state.voidonHostMarkedExpired(int connectionCount) Callback for when an active host is marked expired.voidonHostMarkedUnhealthy(Throwable cause) Callback for when aHosttransitions from healthy to unhealthy.voidCallback for when aHosttransitions from unhealthy to healthy.
-
Method Details
-
onHostMarkedExpired
void onHostMarkedExpired(int connectionCount) Callback for when an active host is marked expired.- Parameters:
connectionCount- the number of active connections for the host.
-
onActiveHostRemoved
void onActiveHostRemoved(int connectionCount) Callback for when a host is removed by service discovery.- Parameters:
connectionCount- the number of open connections when the host was removed.
-
onExpiredHostRevived
void onExpiredHostRevived(int connectionCount) Callback for when an expired host is returned to an active state.- Parameters:
connectionCount- the number of active connections when the host was revived.
-
onExpiredHostRemoved
void onExpiredHostRemoved(int connectionCount) Callback for when an expired host is removed.- Parameters:
connectionCount- the number of open connections when the host was removed.
-
onHostMarkedUnhealthy
Callback for when aHosttransitions from healthy to unhealthy.- Parameters:
cause- the most recent cause of the transition.
-
onHostRevived
void onHostRevived()Callback for when aHosttransitions from unhealthy to healthy.
-