public interface Selector<R,C,E> extends Serializable
Selector mainly work on the logic of parse and select.
parse(Object) allow user accept the condition which provided by Nacos to build the select(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 by select(Object).
Now, Nacos only provide the AbstractCmdbSelector for user to implement their own select logic. Other type is waiting.
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getContextType()
Get the select context which used by
select(Object). |
String |
getType()
Get the selector type.
|
Selector<R,C,E> |
parse(E expression)
parse the selector, build the inner info which used by
select(Object). |
R |
select(C context)
select the target result.
|
Selector<R,C,E> parse(E expression) throws NacosException
select(Object).expression - expression.NacosException - parse failed exception.R select(C context)
context - selector context.String getType()
String getContextType()
select(Object).Copyright © 2018–2024 Alibaba Group. All rights reserved.