All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.eureka2.interests.EmptyRegistryInterest Maven / Gradle / Ivy

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