public class GrpcServerLifecycle
extends java.lang.Object
implements org.springframework.context.SmartLifecycle
Constructor and Description |
---|
GrpcServerLifecycle(GrpcServerFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected void |
createAndStartGrpcServer() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
protected void |
stopAndReleaseGrpcServer() |
public GrpcServerLifecycle(GrpcServerFactory factory)
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public void stop(java.lang.Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
protected void createAndStartGrpcServer() throws java.io.IOException
java.io.IOException
protected void stopAndReleaseGrpcServer()