com.aliyun.mns.common.http
类 DefaultServiceClient

java.lang.Object
  继承者 com.aliyun.mns.common.http.ServiceClient
      继承者 com.aliyun.mns.common.http.DefaultServiceClient

public class DefaultServiceClient
extends ServiceClient

The default implementation of ServiceClient.


嵌套类摘要
 
从类 com.aliyun.mns.common.http.ServiceClient 继承的嵌套类/接口
ServiceClient.Request
 
构造方法摘要
DefaultServiceClient(ClientConfiguration config)
           
 
方法摘要
 void close()
           
protected  RetryStrategy getDefaultRetryStrategy()
           
 boolean isOpen()
           
 void open()
           
<T> Future<org.apache.http.HttpResponse>
sendRequestCore(ServiceClient.Request request, ExecutionContext context, HttpCallback<T> callback)
          Implements the core logic to send requests to Aliyun services.
 void start()
          已过时。 use open instead
 
从类 com.aliyun.mns.common.http.ServiceClient 继承的方法
addHeader, getClientConfiguration, sendRequest
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DefaultServiceClient

public DefaultServiceClient(ClientConfiguration config)
方法详细信息

sendRequestCore

public <T> Future<org.apache.http.HttpResponse> sendRequestCore(ServiceClient.Request request,
                                                                ExecutionContext context,
                                                                HttpCallback<T> callback)
                                                     throws IOException
从类 ServiceClient 复制的描述
Implements the core logic to send requests to Aliyun services.

指定者:
ServiceClient 中的 sendRequestCore
返回:
抛出:
IOException

open

public void open()
指定者:
ServiceClient 中的 open

isOpen

public boolean isOpen()
指定者:
ServiceClient 中的 isOpen

start

public void start()
已过时。 use open instead


close

public void close()
指定者:
ServiceClient 中的 close

getDefaultRetryStrategy

protected RetryStrategy getDefaultRetryStrategy()
指定者:
ServiceClient 中的 getDefaultRetryStrategy


Copyright © 2016. All Rights Reserved.