
com.xxl.rpc.registry.ServiceRegistry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xxl-rpc-core Show documentation
Show all versions of xxl-rpc-core Show documentation
A high performance, distributed RPC framework.
package com.xxl.rpc.registry;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
/**
* service registry
*
* /xxl-rpc/dev/
* - key01(service01)
* - value01 (ip:port01)
* - value02 (ip:port02)
*
* @author xuxueli 2018-10-17
*/
public abstract class ServiceRegistry {
/**
* start
*/
public abstract void start(Map param);
/**
* start
*/
public abstract void stop();
/**
* registry service, for mult
*
* @param keys service key
* @param value service value/ip:port
* @return
*/
public abstract boolean registry(Set keys, String value);
/**
* remove service, for mult
*
* @param keys
* @param value
* @return
*/
public abstract boolean remove(Set keys, String value);
/**
* discovery services, for mult
*
* @param keys
* @return
*/
public abstract Map> discovery(Set keys);
/**
* discovery service, for one
*
* @param key service key
* @return service value/ip:port
*/
public abstract TreeSet discovery(String key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy