接口 Selector<R,C,E>
-
- 所有超级接口:
java.io.Serializable
- 所有已知实现类:
AbstractCmdbSelector
public interface Selector<R,C,E> extends java.io.SerializableTheSelectormainly work on the logic of parse and select.parse(Object)allow user accept the condition which provided by Nacos to build theselect(Object)judge logic.select(Object)allow user to execute the logic to get the target result they want.getType()will return the type.getContextType()will return the context type which used byselect(Object).Now, Nacos only provide the
AbstractCmdbSelectorfor user to implement their own select logic. Other type is waiting.- 作者:
- chenglu
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.lang.StringgetContextType()Get the select context which usede byselect(Object).java.lang.StringgetType()Get the selector type.Selector<R,C,E>parse(E expression)parse the selector, build the inner info which used byselect(Object).Rselect(C context)select the target result.
-
-
-
方法详细资料
-
parse
Selector<R,C,E> parse(E expression) throws NacosException
parse the selector, build the inner info which used byselect(Object).- 参数:
expression- expression.- 返回:
- selector.
- 抛出:
NacosException- parse failed exception.
-
select
R select(C context)
select the target result.- 参数:
context- selector context.- 返回:
- select result.
-
getType
java.lang.String getType()
Get the selector type.- 返回:
- selector type.
-
getContextType
java.lang.String getContextType()
Get the select context which usede byselect(Object).- 返回:
- selector context type.
-
-