Package io.grpc.netty
Class SendResponseHeadersCommand
- java.lang.Object
-
- io.grpc.netty.WriteQueue.AbstractQueuedCommand
-
- io.grpc.netty.SendResponseHeadersCommand
-
- All Implemented Interfaces:
WriteQueue.QueuedCommand
final class SendResponseHeadersCommand extends WriteQueue.AbstractQueuedCommand
Command sent from the transport to the Netty channel to send response headers to the client.
-
-
Field Summary
Fields Modifier and Type Field Description private io.netty.handler.codec.http2.Http2Headers
headers
private Status
status
private StreamIdHolder
stream
-
Constructor Summary
Constructors Modifier Constructor Description private
SendResponseHeadersCommand(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers, Status status)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (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
endOfStream()
boolean
equals(java.lang.Object that)
int
hashCode()
(package private) io.netty.handler.codec.http2.Http2Headers
headers()
(package private) Status
status()
(package private) StreamIdHolder
stream()
java.lang.String
toString()
-
Methods inherited from class io.grpc.netty.WriteQueue.AbstractQueuedCommand
getLink, promise, promise, run
-
-
-
-
Field Detail
-
stream
private final StreamIdHolder stream
-
headers
private final io.netty.handler.codec.http2.Http2Headers headers
-
status
private final Status status
-
-
Constructor Detail
-
SendResponseHeadersCommand
private SendResponseHeadersCommand(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers, Status status)
-
-
Method Detail
-
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
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-