类 InstancesDiff
java.lang.Object
com.alibaba.nacos.client.naming.event.InstancesDiff
The differences in instances compared to the last callback.
- 作者:
- lideyou
-
构造器概要
构造器构造器说明InstancesDiff(List<com.alibaba.nacos.api.naming.pojo.Instance> addedInstances, List<com.alibaba.nacos.api.naming.pojo.Instance> removedInstances, List<com.alibaba.nacos.api.naming.pojo.Instance> modifiedInstances) -
方法概要
修饰符和类型方法说明List<com.alibaba.nacos.api.naming.pojo.Instance>List<com.alibaba.nacos.api.naming.pojo.Instance>List<com.alibaba.nacos.api.naming.pojo.Instance>booleanCheck if any instances have changed.booleanisAdded()Check if any instances have been added.booleanCheck if any instances have been added.booleanCheck if any instances have been added.voidsetAddedInstances(Collection<com.alibaba.nacos.api.naming.pojo.Instance> addedInstances) voidsetModifiedInstances(Collection<com.alibaba.nacos.api.naming.pojo.Instance> modifiedInstances) voidsetRemovedInstances(Collection<com.alibaba.nacos.api.naming.pojo.Instance> removedInstances)
-
构造器详细资料
-
InstancesDiff
public InstancesDiff() -
InstancesDiff
-
-
方法详细资料
-
getAddedInstances
-
setAddedInstances
public void setAddedInstances(Collection<com.alibaba.nacos.api.naming.pojo.Instance> addedInstances) -
getRemovedInstances
-
setRemovedInstances
public void setRemovedInstances(Collection<com.alibaba.nacos.api.naming.pojo.Instance> removedInstances) -
getModifiedInstances
-
setModifiedInstances
public void setModifiedInstances(Collection<com.alibaba.nacos.api.naming.pojo.Instance> modifiedInstances) -
hasDifferent
public boolean hasDifferent()Check if any instances have changed.- 返回:
- true if there are instances that have changed
-
isAdded
public boolean isAdded()Check if any instances have been added.- 返回:
- true if there are instances that have been added.
-
isRemoved
public boolean isRemoved()Check if any instances have been added.- 返回:
- true if there are instances that have been added.
-
isModified
public boolean isModified()Check if any instances have been added.- 返回:
- true if there are instances that have been added.
-