Class ServiceInstancesChangedEvent
java.lang.Object
org.apache.dubbo.registry.client.event.ServiceInstancesChangedEvent
- Direct Known Subclasses:
RetryServiceInstancesChangedEvent
An event raised after the
instances of one service has been changed.- Since:
- 2.7.5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceInstancesChangedEvent(String serviceName, List<ServiceInstance> serviceInstances) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ServiceInstancesChangedEvent
- Parameters:
serviceName- The name of service that was changedserviceInstances- allservice instances- Throws:
IllegalArgumentException- if source is null.
-
-
Method Details
-
getServiceName
- Returns:
- The name of service that was changed
-
getServiceInstances
- Returns:
- all
service instances
-