com.netflix.eureka2.interests.EmptyRegistryInterest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eureka-core Show documentation
Show all versions of eureka-core Show documentation
eureka-core developed by Netflix
The newest version!
package com.netflix.eureka2.interests;
import com.netflix.eureka2.registry.InstanceInfo;
/**
* @author David Liu
*/
public class EmptyRegistryInterest extends Interest {
private static final EmptyRegistryInterest DEFAULT_INSTANCE = new EmptyRegistryInterest();
private static final int HASH = 234234128;
public static EmptyRegistryInterest getInstance() {
return DEFAULT_INSTANCE;
}
@Override
public boolean matches(InstanceInfo data) {
return false;
}
@Override
public int hashCode() {
return HASH;
}
@Override
public boolean equals(Object o) {
return o instanceof EmptyRegistryInterest;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy