Class InProcessGrpcEmbeddedServer
java.lang.Object
io.micronaut.grpc.server.GrpcEmbeddedServer
io.micronaut.grpc.server.InProcessGrpcEmbeddedServer
- All Implemented Interfaces:
io.micronaut.context.ApplicationContextLifeCycle<io.micronaut.runtime.server.EmbeddedServer>, io.micronaut.context.ApplicationContextProvider, io.micronaut.context.LifeCycle<io.micronaut.runtime.server.EmbeddedServer>, io.micronaut.runtime.EmbeddedApplication<io.micronaut.runtime.server.EmbeddedServer>, io.micronaut.runtime.server.EmbeddedServer, Closeable, AutoCloseable
@Singleton
@Secondary
@Named("grpc.server")
@Replaces(GrpcEmbeddedServer.class)
@Requires(classes={io.grpc.ServerBuilder.class,io.micronaut.discovery.ServiceInstance.class}) @Requires(property="grpc.server.enabled",value="true",defaultValue="true") @Requires(property="grpc.server.in-process-name")
@Internal
public class InProcessGrpcEmbeddedServer
extends GrpcEmbeddedServer
Replaces the embedded server bean when the in-process transport is enabled.
- Since:
- 5.0.0
-
Method Summary
Methods inherited from class GrpcEmbeddedServer
getApplicationConfiguration, getApplicationContext, getPort, getServer, getServerConfiguration, isRunning, isServer, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.runtime.EmbeddedApplication
getEnvironment, isForceExit, isShutdownHookNeededMethods inherited from interface io.micronaut.runtime.server.EmbeddedServer
getContextURI, isKeepAliveMethods inherited from interface io.micronaut.context.LifeCycle
close, refresh
-
Method Details
-
getHost
- Specified by:
getHostin interfaceio.micronaut.runtime.server.EmbeddedServer- Overrides:
getHostin classGrpcEmbeddedServer
-
getScheme
- Specified by:
getSchemein interfaceio.micronaut.runtime.server.EmbeddedServer- Overrides:
getSchemein classGrpcEmbeddedServer
-
getURL
- Specified by:
getURLin interfaceio.micronaut.runtime.server.EmbeddedServer- Overrides:
getURLin classGrpcEmbeddedServer
-
getURI
- Specified by:
getURIin interfaceio.micronaut.runtime.server.EmbeddedServer- Overrides:
getURIin classGrpcEmbeddedServer
-