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

com.sproutsocial.nsq.LookupResponse Maven / Gradle / Ivy

There is a newer version: 1.4.8
Show newest version
package com.sproutsocial.nsq;

import java.util.List;

class LookupResponse {

    private LookupResponse data; //older versions wrap responses in a "data" field
    private List producers;

    public LookupResponse getData() {
        return data;
    }

    public void setData(LookupResponse data) {
        this.data = data;
    }

    public List getProducers() {
        return producers;
    }

    public void setProducers(List producers) {
        this.producers = producers;
    }

    @Override
    public String toString() {
        return "LookupResponse{" +
                "data=" + data +
                ", producers=" + producers +
                '}';
    }

    static class Producer {
        private String broadcastAddress;
        private int tcpPort;

        public String getBroadcastAddress() {
            return broadcastAddress;
        }

        public void setBroadcastAddress(String broadcastAddress) {
            this.broadcastAddress = broadcastAddress;
        }

        public int getTcpPort() {
            return tcpPort;
        }

        public void setTcpPort(int tcpPort) {
            this.tcpPort = tcpPort;
        }

        @Override
        public String toString() {
            return "Producer{" +
                    "broadcastAddress='" + broadcastAddress + '\'' +
                    ", tcpPort=" + tcpPort +
                    '}';
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy