public class ServiceInstancesChangedEvent
extends org.springframework.context.ApplicationEvent
instances of one service has been
changed.source| Constructor and Description |
|---|
ServiceInstancesChangedEvent(String serviceName,
List<org.springframework.cloud.client.ServiceInstance> serviceInstances) |
| Modifier and Type | Method and Description |
|---|---|
List<org.springframework.cloud.client.ServiceInstance> |
getServiceInstances() |
String |
getServiceName() |
boolean |
isProcessed()
Current event has been processed or not.
|
void |
processed()
Mark current event being processed.
|
getSource, toStringpublic ServiceInstancesChangedEvent(String serviceName, List<org.springframework.cloud.client.ServiceInstance> serviceInstances)
serviceName - The name of service that was changedserviceInstances - all service instancesIllegalArgumentException - if source is null.public String getServiceName()
public List<org.springframework.cloud.client.ServiceInstance> getServiceInstances()
service instances.public void processed()
public boolean isProcessed()
true, or falseCopyright © 2021 Pivotal Software, Inc.. All rights reserved.