Package io.grpc.xds
Interface XdsServerBuilder.XdsServingStatusListener
-
- Enclosing class:
- XdsServerBuilder
public static interface XdsServerBuilder.XdsServingStatusListener
Applications can register this listener to receive "serving" and "not serving" states of the server usingXdsServerBuilder.xdsServingStatusListener(XdsServingStatusListener)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onNotServing(Throwable throwable)
Callback invoked when server is forced to be "not serving" due to an error.void
onServing()
Callback invoked when server begins serving.
-
-
-
Method Detail
-
onServing
void onServing()
Callback invoked when server begins serving.
-
onNotServing
void onNotServing(Throwable throwable)
Callback invoked when server is forced to be "not serving" due to an error.- Parameters:
throwable
- cause of the error
-
-