public abstract class AbstractServiceDiscovery extends Object implements ServiceDiscovery
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| 构造器和说明 |
|---|
AbstractServiceDiscovery() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
doRegister(ServiceInstance serviceInstance)
It should be implement in kinds of service discovers.
|
abstract void |
doUpdate(ServiceInstance serviceInstance)
It should be implement in kinds of service discovers.
|
ServiceInstance |
getLocalInstance() |
void |
register(ServiceInstance serviceInstance)
Registers an instance of
ServiceInstance. |
void |
update(ServiceInstance serviceInstance)
Updates the registered
ServiceInstance. |
addServiceInstancesChangedListener, destroy, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, getDefaultPageSize, getInstances, getInstances, getInstances, getInstances, getServices, getUrl, initialize, removeServiceInstancesChangedListener, toString, unregistercompareTo, getPrioritypublic ServiceInstance getLocalInstance()
getLocalInstance 在接口中 ServiceDiscoverypublic final void register(ServiceInstance serviceInstance) throws RuntimeException
ServiceDiscoveryServiceInstance.register 在接口中 ServiceDiscoveryserviceInstance - an instance of ServiceInstance to be registeredRuntimeException - if failedpublic abstract void doRegister(ServiceInstance serviceInstance)
public final void update(ServiceInstance serviceInstance) throws RuntimeException
ServiceDiscoveryServiceInstance.update 在接口中 ServiceDiscoveryserviceInstance - the registered ServiceInstanceRuntimeException - if failedpublic abstract void doUpdate(ServiceInstance serviceInstance)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.