com.alibaba.ocean.rawsdk.client.APIClient Maven / Gradle / Ivy
The newest version!
/**
*
*/
package com.alibaba.ocean.rawsdk.client;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
import com.alibaba.ocean.rawsdk.client.entity.AuthorizationToken;
import com.alibaba.ocean.rawsdk.client.exception.OceanException;
import com.alibaba.ocean.rawsdk.client.policy.RequestPolicy;
/**
* @author hongbang.hb
*
*/
public interface APIClient {
public T send(Request request, Class resultType, RequestPolicy policy) throws OceanException;
//
//
// public AuthorizationToken getToken(String code) throws OceanException;
//
//
// public AuthorizationToken refreshToken(String refreshToken) throws OceanException;
//
//
public void start();
public void shutdown();
}