Package io.grpc.netty
Class GracefulServerCloseCommand
java.lang.Object
io.grpc.netty.WriteQueue.AbstractQueuedCommand
io.grpc.netty.GracefulServerCloseCommand
- All Implemented Interfaces:
WriteQueue.QueuedCommand
A command to trigger close and allow streams naturally close.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGracefulServerCloseCommand
(String goAwayDebugString) GracefulServerCloseCommand
(String goAwayDebugString, long graceTime, TimeUnit graceTimeUnit) -
Method Summary
Modifier and TypeMethodDescriptionlong
Has no meaning ifgetGraceTimeUnit() == null
.Methods inherited from class io.grpc.netty.WriteQueue.AbstractQueuedCommand
getLink, promise, promise, run
-
Field Details
-
goAwayDebugString
-
graceTime
private final long graceTime -
graceTimeUnit
-
-
Constructor Details
-
GracefulServerCloseCommand
-
GracefulServerCloseCommand
-
-
Method Details
-
getGoAwayDebugString
-
getGraceTime
public long getGraceTime()Has no meaning ifgetGraceTimeUnit() == null
. -
getGraceTimeUnit
-