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 Object
implements org.springframework.context.SmartLifecycle
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionGrpcConsulRegistrar(org.springframework.cloud.consul.serviceregistry.ConsulServiceRegistry consulServiceRegistry) -
Method Summary
-
Constructor Details
-
GrpcConsulRegistrar
public GrpcConsulRegistrar(org.springframework.cloud.consul.serviceregistry.ConsulServiceRegistry consulServiceRegistry)
-
-
Method Details
-
onGrpcServerStarted
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
- 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
-