Package io.grpc.netty
Class WriteQueue.RunnableCommand
- java.lang.Object
-
- io.grpc.netty.WriteQueue.RunnableCommand
-
- All Implemented Interfaces:
WriteQueue.QueuedCommand
- Enclosing class:
- WriteQueue
private static class WriteQueue.RunnableCommand extends java.lang.Object implements WriteQueue.QueuedCommand
-
-
Constructor Summary
Constructors Constructor Description RunnableCommand(java.lang.Runnable runnable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.perfmark.LinkgetLink()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.voidrun(io.netty.channel.Channel channel)
-
-
-
Method Detail
-
promise
public final void promise(io.netty.channel.ChannelPromise promise)
Description copied from interface:WriteQueue.QueuedCommandSets the promise.- Specified by:
promisein interfaceWriteQueue.QueuedCommand
-
promise
public final 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
-
run
public final void run(io.netty.channel.Channel channel)
- Specified by:
runin interfaceWriteQueue.QueuedCommand
-
getLink
public io.perfmark.Link getLink()
- Specified by:
getLinkin interfaceWriteQueue.QueuedCommand
-
-