public Object invokeSync(final Connection conn, final Object request,
                             final InvokeContext invokeContext, final int timeoutMillis)
                                                                                        throws RemotingException,
                                                                                        InterruptedException {
        ensureStarted();
        return this.rpcRemoting.invokeSync(conn, request, invokeContext, timeoutMillis);
    }
Synchronous invocation with a {@link InvokeContext}, common api notice please see {@link #invokeSync(Connection, Object, int)}

@param conn connection connection
@param request request request
@param invokeContext invokeContext invokeContext
@param timeoutMillis timeoutMillis timeoutMillis
@return object
@throws RemotingException remoting exception remoting exception
@throws InterruptedException interrupted exception
src/main/java/com/alipay/remoting/rpc/RpcServer.java