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

com.rabbitmq.client.ResolvedInetAddress Maven / Gradle / Ivy

Go to download

The RabbitMQ Java client library allows Java applications to interface with RabbitMQ.

There is a newer version: 5.22.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy