Package io.grpc.netty
Class CancelServerStreamCommand
java.lang.Object
io.grpc.netty.WriteQueue.AbstractQueuedCommand
io.grpc.netty.CancelServerStreamCommand
- All Implemented Interfaces:
WriteQueue.QueuedCommand
Command sent from a Netty server stream to the handler to cancel the stream.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CancelServerStreamCommand.PeerNotify
private final Status
private final NettyServerStream.TransportState
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CancelServerStreamCommand
(NettyServerStream.TransportState stream, Status reason, CancelServerStreamCommand.PeerNotify peerNotify) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
(package private) Status
reason()
(package private) NettyServerStream.TransportState
stream()
toString()
(package private) boolean
(package private) static CancelServerStreamCommand
withReason
(NettyServerStream.TransportState stream, Status reason) (package private) static CancelServerStreamCommand
withReset
(NettyServerStream.TransportState stream, Status reason) Methods inherited from class io.grpc.netty.WriteQueue.AbstractQueuedCommand
getLink, promise, promise, run
-
Field Details
-
stream
-
reason
-
peerNotify
-
-
Constructor Details
-
CancelServerStreamCommand
private CancelServerStreamCommand(NettyServerStream.TransportState stream, Status reason, CancelServerStreamCommand.PeerNotify peerNotify)
-
-
Method Details