Java 类org.apache.thrift.server.AbstractNonblockingServer 实例源码

项目:internet_of_things_simulator    文件:AsyncProcessFunction.java   
public void sendResponse(final AbstractNonblockingServer.AsyncFrameBuffer fb, final TBase result, final byte type, final int seqid) throws TException {
    TProtocol oprot = fb.getOutputProtocol();

    oprot.writeMessageBegin(new TMessage(getMethodName(), type, seqid));
    result.write(oprot);
    oprot.writeMessageEnd();
    oprot.getTransport().flush();

    fb.responseReady();
}
项目:internet_of_things_simulator    文件:AsyncProcessFunction.java   
public abstract AsyncMethodCallback getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, int seqid);