org.apache.xmlrpc.common.XmlRpcWorkerFactory.getWorker()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.apache.xmlrpc.common.XmlRpcWorkerFactory.getWorker()方法的一些代码示例,展示了XmlRpcWorkerFactory.getWorker()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlRpcWorkerFactory.getWorker()方法的具体详情如下:
包路径:org.apache.xmlrpc.common.XmlRpcWorkerFactory
类名称:XmlRpcWorkerFactory
方法名:getWorker

XmlRpcWorkerFactory.getWorker介绍

[英]Returns a worker for synchronous processing.
[中]返回用于同步处理的辅助进程。

代码示例

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-client

/** Performs a request with the clients default configuration.
 * @param pRequest The request being performed.
 * @param pCallback The callback being notified when the request is finished.
 * @throws XmlRpcException Performing the request failed.
 */
public void executeAsync(XmlRpcRequest pRequest,
             AsyncCallback pCallback) throws XmlRpcException {
  XmlRpcClientWorker w = (XmlRpcClientWorker) getWorkerFactory().getWorker();
  w.execute(pRequest, pCallback);
}

代码示例来源:origin: xmlrpc/xmlrpc-client

/** Performs a request with the clients default configuration.
 * @param pRequest The request being performed.
 * @return The result object.
 * @throws XmlRpcException Performing the request failed.
 */
public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
  return getWorkerFactory().getWorker().execute(pRequest);
}

代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-client

/** Performs a request with the clients default configuration.
 * @param pRequest The request being performed.
 * @return The result object.
 * @throws XmlRpcException Performing the request failed.
 */
public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
  return getWorkerFactory().getWorker().execute(pRequest);
}

代码示例来源:origin: rosjava/rosjava_core

/** Performs a request with the clients default configuration.
 * @param pRequest The request being performed.
 * @return The result object.
 * @throws XmlRpcException Performing the request failed.
 */
public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
  return getWorkerFactory().getWorker().execute(pRequest);
}

代码示例来源:origin: rosjava/rosjava_core

/** Performs a request with the clients default configuration.
 * @param pRequest The request being performed.
 * @param pCallback The callback being notified when the request is finished.
 * @throws XmlRpcException Performing the request failed.
 */
public void executeAsync(XmlRpcRequest pRequest,
             AsyncCallback pCallback) throws XmlRpcException {
  XmlRpcClientWorker w = (XmlRpcClientWorker) getWorkerFactory().getWorker();
  w.execute(pRequest, pCallback);
}

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-client

/** Performs a request with the clients default configuration.
 * @param pRequest The request being performed.
 * @return The result object.
 * @throws XmlRpcException Performing the request failed.
 */
public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
  return getWorkerFactory().getWorker().execute(pRequest);
}

代码示例来源:origin: xmlrpc/xmlrpc-client

/** Performs a request with the clients default configuration.
 * @param pRequest The request being performed.
 * @param pCallback The callback being notified when the request is finished.
 * @throws XmlRpcException Performing the request failed.
 */
public void executeAsync(XmlRpcRequest pRequest,
             AsyncCallback pCallback) throws XmlRpcException {
  XmlRpcClientWorker w = (XmlRpcClientWorker) getWorkerFactory().getWorker();
  w.execute(pRequest, pCallback);
}

代码示例来源:origin: rosjava/rosjava_core

/** Performs the given request.
   * @param pRequest The request being executed.
   * @return The result object.
   * @throws XmlRpcException The request failed.
   */
  public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
    final XmlRpcWorkerFactory factory = getWorkerFactory();
    final XmlRpcWorker worker = factory.getWorker();
    try {
      return worker.execute(pRequest);
    } finally {
      factory.releaseWorker(worker);
    }
  }
}

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server

/** Performs the given request.
   * @param pRequest The request being executed.
   * @return The result object.
   * @throws XmlRpcException The request failed.
   */
  public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
    final XmlRpcWorkerFactory factory = getWorkerFactory();
    final XmlRpcWorker worker = factory.getWorker();
    try {
      return worker.execute(pRequest);
    } finally {
      factory.releaseWorker(worker);
    }
  }
}

代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server

/** Performs the given request.
   * @param pRequest The request being executed.
   * @return The result object.
   * @throws XmlRpcException The request failed.
   */
  public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
    final XmlRpcWorkerFactory factory = getWorkerFactory();
    final XmlRpcWorker worker = factory.getWorker();
    try {
      return worker.execute(pRequest);
    } finally {
      factory.releaseWorker(worker);
    }
  }
}

相关文章