Class GrpcConsulRegistrar
- java.lang.Object
-
- org.lognet.springboot.grpc.autoconfigure.consul.GrpcConsulRegistrar
-
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class GrpcConsulRegistrar extends java.lang.Object implements org.springframework.context.SmartLifecycle
-
-
Constructor Summary
Constructors Constructor Description GrpcConsulRegistrar(org.springframework.cloud.consul.serviceregistry.ConsulServiceRegistry consulServiceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPhase()booleanisAutoStartup()booleanisRunning()voidonGrpcServerStarted(GRpcServerInitializedEvent event)voidstart()voidstop()voidstop(java.lang.Runnable callback)
-
-
-
Method Detail
-
onGrpcServerStarted
@EventListener public void onGrpcServerStarted(GRpcServerInitializedEvent event)
-
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
public void stop(java.lang.Runnable callback)
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()
- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()
- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()
- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()
- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
-