Package io.grpc.netty
Class SendGrpcFrameCommand
- java.lang.Object
-
- io.netty.buffer.DefaultByteBufHolder
-
- io.grpc.netty.SendGrpcFrameCommand
-
- All Implemented Interfaces:
WriteQueue.QueuedCommand,io.netty.buffer.ByteBufHolder,io.netty.util.ReferenceCounted
final class SendGrpcFrameCommand extends io.netty.buffer.DefaultByteBufHolder implements WriteQueue.QueuedCommand
Command sent from the transport to the Netty channel to send a GRPC frame to the remote endpoint.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanendStreamprivate io.perfmark.Linklinkprivate io.netty.channel.ChannelPromisepromiseprivate StreamIdHolderstream
-
Constructor Summary
Constructors Constructor Description SendGrpcFrameCommand(StreamIdHolder stream, io.netty.buffer.ByteBuf content, boolean endStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanendStream()booleanequals(java.lang.Object that)io.perfmark.LinkgetLink()inthashCode()io.netty.channel.ChannelPromisepromise()Returns the promise beeing notified of the success/failure of the write.voidpromise(io.netty.channel.ChannelPromise promise)Sets the promise.io.netty.buffer.ByteBufHolderreplace(io.netty.buffer.ByteBuf content)voidrun(io.netty.channel.Channel channel)(package private) StreamIdHolderstream()java.lang.StringtoString()
-
-
-
Field Detail
-
stream
private final StreamIdHolder stream
-
endStream
private final boolean endStream
-
link
private final io.perfmark.Link link
-
promise
private io.netty.channel.ChannelPromise promise
-
-
Constructor Detail
-
SendGrpcFrameCommand
SendGrpcFrameCommand(StreamIdHolder stream, io.netty.buffer.ByteBuf content, boolean endStream)
-
-
Method Detail
-
getLink
public io.perfmark.Link getLink()
- Specified by:
getLinkin interfaceWriteQueue.QueuedCommand
-
stream
StreamIdHolder stream()
-
endStream
boolean endStream()
-
replace
public io.netty.buffer.ByteBufHolder replace(io.netty.buffer.ByteBuf content)
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder- Overrides:
replacein classio.netty.buffer.DefaultByteBufHolder
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equalsin classio.netty.buffer.DefaultByteBufHolder
-
toString
public java.lang.String toString()
- Overrides:
toStringin classio.netty.buffer.DefaultByteBufHolder
-
hashCode
public int hashCode()
- Overrides:
hashCodein classio.netty.buffer.DefaultByteBufHolder
-
promise
public io.netty.channel.ChannelPromise promise()
Description copied from interface:WriteQueue.QueuedCommandReturns the promise beeing notified of the success/failure of the write.- Specified by:
promisein interfaceWriteQueue.QueuedCommand
-
promise
public void promise(io.netty.channel.ChannelPromise promise)
Description copied from interface:WriteQueue.QueuedCommandSets the promise.- Specified by:
promisein interfaceWriteQueue.QueuedCommand
-
run
public final void run(io.netty.channel.Channel channel)
- Specified by:
runin interfaceWriteQueue.QueuedCommand
-
-