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

org.infinispan.server.network.SocketBinding Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev03
Show newest version
package org.infinispan.server.network;

/**
 * @author Tristan Tarrant <[email protected]>
 * @since 10.0
 **/
public class SocketBinding {
   private final String name;
   private final NetworkAddress address;
   private final int port;

   public SocketBinding(String name, NetworkAddress networkAddress, int port) {
      this.name = name;
      this.address = networkAddress;
      this.port = port;
   }

   public NetworkAddress getAddress() {
      return address;
   }

   public int getPort() {
      return port;
   }

   public String getName() {
      return name;
   }

   public String toString() {
      return "SocketBinding{" +
            "name='" + name + '\'' +
            ", address=" + address +
            ", port=" + port +
            '}';
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy