public interface HealthCheckerContext
| Modifier and Type | Method and Description |
|---|---|
ClientOptions |
clientOptions()
Returns the
ClientOptions of the Client that sends health check requests. |
Endpoint |
endpoint()
Returns the
Endpoint to send health check requests to. |
ScheduledExecutorService |
executor()
Returns the
ScheduledExecutorService which is used for scheduling the tasks related with
sending health check requests. |
long |
nextDelayMillis()
Returns the delay for the next health check request in milliseconds.
|
SessionProtocol |
protocol()
Returns the
SessionProtocol to be used when sending health check requests. |
void |
updateHealth(double health)
Updates the health of the
Endpoint being checked. |
SessionProtocol protocol()
SessionProtocol to be used when sending health check requests.ClientOptions clientOptions()
ClientOptions of the Client that sends health check requests.ScheduledExecutorService executor()
ScheduledExecutorService which is used for scheduling the tasks related with
sending health check requests. Note that the ScheduledExecutorService returned by this method
cannot be shut down; calling ExecutorService.shutdown() or ExecutorService.shutdownNow()
will trigger an UnsupportedOperationException.long nextDelayMillis()
Copyright © 2020 LeanCloud. All rights reserved.