com.alibaba.tmq.common.domain.ServerList Maven / Gradle / Ivy
package com.alibaba.tmq.common.domain;
import java.util.List;
import com.alibaba.tmq.common.remoting.protocol.RemotingSerializable;
public class ServerList {
private List servers;
public List getServers() {
return servers;
}
public void setServers(List servers) {
this.servers = servers;
}
@Override
public String toString() {
return RemotingSerializable.toJson(this, false);
}
public static ServerList newInstance(String json) {
return RemotingSerializable.fromJson(json, ServerList.class);
}
}