Package io.vertx.grpc
Class VertxServer
- java.lang.Object
-
- io.grpc.Server
-
- io.vertx.grpc.VertxServer
-
public class VertxServer extends io.grpc.Server- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitTermination()booleanawaitTermination(long timeout, TimeUnit unit)intgetPort()io.grpc.ServergetRawServer()booleanisShutdown()booleanisTerminated()VertxServershutdown()VertxServershutdown(Completable<Void> completionHandler)VertxServershutdownNow()VertxServerstart()VertxServerstart(Completable<Void> completionHandler)
-
-
-
Method Detail
-
start
public VertxServer start() throws IOException
- Specified by:
startin classio.grpc.Server- Throws:
IOException
-
start
public VertxServer start(Completable<Void> completionHandler)
-
shutdown
public VertxServer shutdown()
- Specified by:
shutdownin classio.grpc.Server
-
shutdown
public VertxServer shutdown(Completable<Void> completionHandler)
-
getPort
public int getPort()
- Overrides:
getPortin classio.grpc.Server
-
shutdownNow
public VertxServer shutdownNow()
- Specified by:
shutdownNowin classio.grpc.Server
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdownin classio.grpc.Server
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminatedin classio.grpc.Server
-
awaitTermination
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException- Specified by:
awaitTerminationin classio.grpc.Server- Throws:
InterruptedException
-
awaitTermination
public void awaitTermination() throws InterruptedException- Specified by:
awaitTerminationin classio.grpc.Server- Throws:
InterruptedException
-
getRawServer
public io.grpc.Server getRawServer()
-
-