com.baidu.driver4j.bns
接口 SelectionStrategy


public interface SelectionStrategy

This interface is used to BNS query service to decide how select only one result to return

从以下版本开始:
1.0.0
作者:
xiemalin
另请参见:
BNSQueryAgentProxy#getInstanceByService(String)

字段摘要
static int SELECTED
          value to determine this one must selected
 
方法摘要
 int deciding(Instance instance)
          Returns 0~100 value for each Instance. if return less than 0, then return 0
if return great than 100 then return 100.
 

字段详细信息

SELECTED

static final int SELECTED
value to determine this one must selected

另请参见:
常量字段值
方法详细信息

deciding

int deciding(Instance instance)
Returns 0~100 value for each Instance. if return less than 0, then return 0
if return great than 100 then return 100.
if return 100 will quick return by this selection.

参数:
instance - Instance to decide if should selected
返回:


Copyright © 2016. All rights reserved.