com.rabbitmq.client.ResolvedInetAddress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amqp-client Show documentation
Show all versions of amqp-client Show documentation
The RabbitMQ Java client library allows Java applications to interface with RabbitMQ.
package com.rabbitmq.client;
import java.net.InetAddress;
import java.net.InetSocketAddress;
public class ResolvedInetAddress extends Address {
private final InetAddress inetAddress;
public ResolvedInetAddress(String originalHostname, InetAddress inetAddress, int port) {
super(originalHostname, port);
this.inetAddress = inetAddress;
}
@Override
public InetSocketAddress toInetSocketAddress(int port) {
return new InetSocketAddress(inetAddress, port);
}
}