public class SetRouter extends AbstractServiceRouter
ServiceRouter.Aspect| Constructor and Description |
|---|
SetRouter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enable(RouteInfo routeInfo,
ServiceMetadata dstSvcInfo) |
ServiceRouter.Aspect |
getAspect() |
String |
getName() |
PluginType |
getType() |
boolean |
groupIsLike(Instance instance)
是否是模糊匹配
|
void |
init(InitContext ctx) |
RouteResult |
router(RouteInfo routeInfo,
ServiceInstances instances) |
getFilteredInstances, getId, postContextInit, setIddestroy, isDestroyedpublic RouteResult router(RouteInfo routeInfo, ServiceInstances instances) throws PolarisException
router in class AbstractServiceRouterPolarisExceptionpublic boolean groupIsLike(Instance instance)
instance - 实例对象public String getName()
getName in interface PlugingetName in class Destroyablepublic PluginType getType()
getType in interface PlugingetType in class AbstractServiceRouterpublic void init(InitContext ctx) throws PolarisException
PolarisExceptionpublic ServiceRouter.Aspect getAspect()
public boolean enable(RouteInfo routeInfo, ServiceMetadata dstSvcInfo)
enable in interface ServiceRouterenable in class AbstractServiceRouterCopyright © 2023. All rights reserved.