本文整理汇总了Java中com.turbomanage.httpclient.AsyncHttpClient类的典型用法代码示例。如果您正苦于以下问题:Java AsyncHttpClient类的具体用法?Java AsyncHttpClient怎么用?Java AsyncHttpClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AsyncHttpClient类属于com.turbomanage.httpclient包,在下文中一共展示了AsyncHttpClient类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAsyncRequestExecutor
import com.turbomanage.httpclient.AsyncHttpClient; //导入依赖的package包/类
@Override
public AsyncRequestExecutor getAsyncRequestExecutor(AsyncHttpClient client,
AsyncCallback callback) {
return new DoHttpRequestTask(client, callback);
}
示例2: getAsyncRequestExecutor
import com.turbomanage.httpclient.AsyncHttpClient; //导入依赖的package包/类
@Override
public AsyncRequestExecutor getAsyncRequestExecutor(AsyncHttpClient client,
AsyncCallback callback) {
return new DoParallelHttpRequestTask(client, callback);
}
示例3: DoParallelHttpRequestTask
import com.turbomanage.httpclient.AsyncHttpClient; //导入依赖的package包/类
public DoParallelHttpRequestTask(AsyncHttpClient httpClient,
AsyncCallback callback) {
super(httpClient, callback);
// TODO Auto-generated constructor stub
}
示例4: DoHttpRequestTask
import com.turbomanage.httpclient.AsyncHttpClient; //导入依赖的package包/类
/**
* Construct a new task with a callback to invoke when the request completes
* or fails.
*
* @param callback
*/
public DoHttpRequestTask(AsyncHttpClient httpClient, AsyncCallback callback) {
this.client = httpClient;
this.callback = callback;
}