org.infinispan.server.router.routes.RouteDestination Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-server-router Show documentation
Show all versions of infinispan-server-router Show documentation
Infinispan Multi Tenant Router
The newest version!
package org.infinispan.server.router.routes;
import java.util.Objects;
import org.infinispan.server.core.ProtocolServer;
public abstract class RouteDestination {
private final String name;
private final T server;
protected RouteDestination(String name, T server) {
this.name = Objects.requireNonNull(name);
this.server = Objects.requireNonNull(server);
}
public String getName() {
return name;
}
public T getProtocolServer() {
return server;
}
@Override
public String toString() {
return getClass().getSimpleName() + "name='" + name + "\'}";
}
}