TNonblockingServerTransport serverTransport) {
this(processor, serverTransport, new Options());
}
-
+
/**
* Create server with given processor, server transport, and server options
* using TBinaryProtocol for the protocol, and TFramedTransport.Factory on
@Override
protected boolean requestInvoke(FrameBuffer frameBuffer) {
try {
- invoker.execute(new Invocation(frameBuffer));
+ Runnable invocation = getRunnable(frameBuffer);
+ invoker.execute(invocation);
return true;
} catch (RejectedExecutionException rx) {
LOGGER.warn("ExecutorService rejected execution!", rx);
}
}
+ protected Runnable getRunnable(FrameBuffer frameBuffer){
+ return new Invocation(frameBuffer);
+ }
+
/**
* An Invocation represents a method call that is prepared to execute, given
* an idle worker thread. It contains the input and output protocols the