![JAR search and dependency download from the Maven repository](/logo.png)
cocaine.ServiceInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cocaine-client Show documentation
Show all versions of cocaine-client Show documentation
Client for Cocaine Application Engine.
The newest version!
package cocaine;
import java.net.SocketAddress;
/**
* @author Anton Bobukh
*/
public class ServiceInfo {
private final String name;
private final SocketAddress endpoint;
private final ServiceApi api;
public ServiceInfo(String name, SocketAddress endpoint, ServiceApi api) {
this.name = name;
this.endpoint = endpoint;
this.api = api;
}
public String getName() {
return name;
}
public SocketAddress getEndpoint() {
return endpoint;
}
public ServiceApi getApi() {
return api;
}
@Override
public String toString() {
return "Service: " + name + "; Endpoint: " + endpoint + "; Service API: { " + api.toString() + " }";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy