Package io.vertx.grpc
Class VertxServer
- java.lang.Object
-
- io.grpc.Server
-
- io.vertx.grpc.VertxServer
-
public class VertxServer extends Server
- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
awaitTermination()
boolean
awaitTermination(long timeout, TimeUnit unit)
int
getPort()
Server
getRawServer()
boolean
isShutdown()
boolean
isTerminated()
VertxServer
shutdown()
VertxServer
shutdown(Promise<Void> completionHandler)
VertxServer
shutdownNow()
VertxServer
start()
VertxServer
start(Completable<Void> completionHandler)
-
Methods inherited from class io.grpc.Server
getImmutableServices, getListenSockets, getMutableServices, getServices
-
-
-
-
Method Detail
-
start
public VertxServer start() throws IOException
- Specified by:
start
in classServer
- Throws:
IOException
-
start
public VertxServer start(Completable<Void> completionHandler)
-
shutdown
public VertxServer shutdown()
-
shutdown
public VertxServer shutdown(Promise<Void> completionHandler)
-
shutdownNow
public VertxServer shutdownNow()
- Specified by:
shutdownNow
in classServer
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown
in classServer
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in classServer
-
awaitTermination
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
- Specified by:
awaitTermination
in classServer
- Throws:
InterruptedException
-
awaitTermination
public void awaitTermination() throws InterruptedException
- Specified by:
awaitTermination
in classServer
- Throws:
InterruptedException
-
getRawServer
public Server getRawServer()
-
-