| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected