]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | package org.apache.thrift.server; |
2 | ||
3 | import org.apache.thrift.server.AbstractNonblockingServer.FrameBuffer; | |
4 | ||
5 | /** | |
6 | * An Invocation represents a method call that is prepared to execute, given | |
7 | * an idle worker thread. It contains the input and output protocols the | |
8 | * thread's processor should use to perform the usual Thrift invocation. | |
9 | */ | |
10 | class Invocation implements Runnable { | |
11 | private final FrameBuffer frameBuffer; | |
12 | ||
13 | public Invocation(final FrameBuffer frameBuffer) { | |
14 | this.frameBuffer = frameBuffer; | |
15 | } | |
16 | ||
17 | public void run() { | |
18 | frameBuffer.invoke(); | |
19 | } | |
20 | } |