Package io.grpc.netty
Class SendResponseHeadersCommand
java.lang.Object
io.grpc.netty.WriteQueue.AbstractQueuedCommand
io.grpc.netty.SendResponseHeadersCommand
- All Implemented Interfaces:
WriteQueue.QueuedCommand
Command sent from the transport to the Netty channel to send response headers to the client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.netty.handler.codec.http2.Http2Headers
private final Status
private final StreamIdHolder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SendResponseHeadersCommand
(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers, Status status) -
Method Summary
Modifier and TypeMethodDescription(package private) static SendResponseHeadersCommand
createHeaders
(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers) (package private) static SendResponseHeadersCommand
createTrailers
(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers, Status status) (package private) boolean
boolean
int
hashCode()
(package private) io.netty.handler.codec.http2.Http2Headers
headers()
(package private) Status
status()
(package private) StreamIdHolder
stream()
toString()
Methods inherited from class io.grpc.netty.WriteQueue.AbstractQueuedCommand
getLink, promise, promise, run
-
Field Details
-
stream
-
headers
private final io.netty.handler.codec.http2.Http2Headers headers -
status
-
-
Constructor Details
-
SendResponseHeadersCommand
private SendResponseHeadersCommand(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers, Status status)
-
-
Method Details
-
createHeaders
static SendResponseHeadersCommand createHeaders(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers) -
createTrailers
static SendResponseHeadersCommand createTrailers(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers, Status status) -
stream
StreamIdHolder stream() -
headers
io.netty.handler.codec.http2.Http2Headers headers() -
endOfStream
boolean endOfStream() -
status
Status status() -
equals
-
toString
-
hashCode
public int hashCode()
-