public class MockInvokersSelector<T> extends AbstractStateRouter<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
DEFAULT_PRIORITY| Constructor and Description |
|---|
MockInvokersSelector(org.apache.dubbo.common.URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
notify(BitList<Invoker<T>> invokers)
Notify the router the invoker list.
|
StateRouterResult<Invoker<T>> |
route(BitList<Invoker<T>> invokers,
org.apache.dubbo.common.URL url,
Invocation invocation,
boolean needToPrintMessage)
** This method can return the state of whether routerChain needed to continue route.
|
getPriority, getRuleRepository, getUrl, isForce, isRuntime, setForce, setPriority, setUrlequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTo, stoppublic static final String NAME
public MockInvokersSelector(org.apache.dubbo.common.URL url)
public StateRouterResult<Invoker<T>> route(BitList<Invoker<T>> invokers, org.apache.dubbo.common.URL url, Invocation invocation, boolean needToPrintMessage) throws RpcException
StateRouterinvokers - invoker bit listurl - refer urlinvocation - invocationneedToPrintMessage - whether to print router state. Such as `use router branch a`.RpcExceptionpublic void notify(BitList<Invoker<T>> invokers)
StateRouterStateRouter.route(BitList, URL, Invocation, boolean) gets called.notify in interface StateRouter<T>notify in class AbstractStateRouter<T>invokers - invoker listCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.