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.Http2Headersheadersprivate Statusstatusprivate StreamIdHolderstream
-
Constructor Summary
Constructors Modifier Constructor Description privateSendResponseHeadersCommand(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 SendResponseHeadersCommandcreateHeaders(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers)(package private) static SendResponseHeadersCommandcreateTrailers(StreamIdHolder stream, io.netty.handler.codec.http2.Http2Headers headers, Status status)(package private) booleanendOfStream()booleanequals(java.lang.Object that)inthashCode()(package private) io.netty.handler.codec.http2.Http2Headersheaders()(package private) Statusstatus()(package private) StreamIdHolderstream()java.lang.StringtoString()-
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:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-