io.scalecube.services.ServiceRegistration Maven / Gradle / Ivy
package io.scalecube.services;
import java.util.Collection;
import java.util.Map;
public class ServiceRegistration {
private String namespace;
private String contentType;
private Map tags;
private Collection methods;
/**
* @deprecated exposed only for deserialization purpose.
*/
public ServiceRegistration() {}
public ServiceRegistration(String namespace,
String contentType,
Map tags,
Collection methods) {
this.namespace = namespace;
this.contentType = contentType;
this.tags = tags;
this.methods = methods;
}
public String namespace() {
return namespace;
}
public String contentType() {
return contentType;
}
public Map tags() {
return tags;
}
public Collection methods() {
return methods;
}
public ServiceRegistration setContentType(String contentType) {
this.contentType = contentType;
return this;
}
public ServiceRegistration setTags(Map tags) {
this.tags = tags;
return this;
}
@Override
public String toString() {
return "ServiceRegistration{" +
"namespace='" + namespace + '\'' +
", contentType='" + contentType + '\'' +
", tags=" + tags +
", methods=" + methods +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy