public interface HealthCheckerContext
| Modifier and Type | Method and Description |
|---|---|
Function<? super ClientOptionsBuilder,ClientOptionsBuilder> |
clientConfigurator()
|
ClientFactory |
clientFactory()
Returns the
ClientFactory which is used for sending 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. |
ClientFactory clientFactory()
ClientFactory which is used for sending health check requests.SessionProtocol protocol()
SessionProtocol to be used when sending health check requests.Function<? super ClientOptionsBuilder,ClientOptionsBuilder> clientConfigurator()
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.