public class GrpcConsulRegistrar
extends java.lang.Object
implements org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
GrpcConsulRegistrar(org.springframework.cloud.consul.serviceregistry.ConsulServiceRegistry consulServiceRegistry) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
onGrpcServerStarted(GRpcServerInitializedEvent initializedEvent) |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
public GrpcConsulRegistrar(org.springframework.cloud.consul.serviceregistry.ConsulServiceRegistry consulServiceRegistry)
@EventListener public void onGrpcServerStarted(GRpcServerInitializedEvent initializedEvent)
public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecycle