All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.server.router.routes.RouteDestination Maven / Gradle / Ivy

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 + "\'}";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy