MCPcopy Index your code
hub / github.com/grpc/grpc-java / RunnableCommand

Class RunnableCommand

netty/src/main/java/io/grpc/netty/WriteQueue.java:155–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 private static class RunnableCommand implements QueuedCommand {
156 private final Runnable runnable;
157 private final Link link;
158
159 public RunnableCommand(Runnable runnable) {
160 this.link = PerfMark.linkOut();
161 this.runnable = runnable;
162 }
163
164 @Override
165 public final void promise(ChannelPromise promise) {
166 throw new UnsupportedOperationException();
167 }
168
169 @Override
170 public final ChannelPromise promise() {
171 throw new UnsupportedOperationException();
172 }
173
174 @Override
175 public final void run(Channel channel) {
176 runnable.run();
177 }
178
179 @Override
180 public Link getLink() {
181 return link;
182 }
183 }
184
185 abstract static class AbstractQueuedCommand implements QueuedCommand {
186

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected