public class ChartQueryService
extends java.lang.Object
海图查询服务类。
构造器和说明 |
---|
ChartQueryService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
void |
process(ChartQueryParameters parameters, QueryEventListener listener)
根据海图服务地址与服务端完成异步通讯,即发送查询参数,并通过实现QueryEventListener监听器处理查询结果。
|
void |
setTimeout(int timeout)
用户自定义超时时间。
|
public ChartQueryService(java.lang.String url)
构造函数。 使用服务地址 URL 实例化 ChartQueryService 对象。
url
-public void process(ChartQueryParameters parameters, QueryEventListener listener)
根据海图服务地址与服务端完成异步通讯,即发送查询参数,并通过实现QueryEventListener监听器处理查询结果。
parameters
- 海图查询参数listener
- 处理查询结果的QueryEventListener监听器。public void setTimeout(int timeout)
用户自定义超时时间。
timeout
- 用户自定义超时时间。若用户不设置,则使用默认超时间为5秒。0代表无限,即代表不设置超时限制。单位默认为秒。