/*
 * Copyright 2014 Red Hat, Inc.
 *
 * Red Hat licenses this file to you under the Apache License, version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License.  You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package io.vertx.reactivex.core.dns;

import java.util.Map;
import io.reactivex.Observable;
import io.reactivex.Flowable;
import io.reactivex.Single;
import io.reactivex.Completable;
import io.reactivex.Maybe;

Represent a Service-Record (SRV) which was resolved for a domain.

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
/** * Represent a Service-Record (SRV) which was resolved for a domain. * * <p/> * NOTE: This class has been automatically generated from the {@link io.vertx.core.dns.SrvRecord original} non RX-ified interface using Vert.x codegen. */
@io.vertx.lang.rx.RxGen(io.vertx.core.dns.SrvRecord.class) public class SrvRecord { @Override public String toString() { return delegate.toString(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SrvRecord that = (SrvRecord) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } public static final io.vertx.lang.rx.TypeArg<SrvRecord> __TYPE_ARG = new io.vertx.lang.rx.TypeArg<>( obj -> new SrvRecord((io.vertx.core.dns.SrvRecord) obj), SrvRecord::getDelegate ); private final io.vertx.core.dns.SrvRecord delegate; public SrvRecord(io.vertx.core.dns.SrvRecord delegate) { this.delegate = delegate; } public io.vertx.core.dns.SrvRecord getDelegate() { return delegate; }
Returns the priority for this service record.
Returns:
/** * Returns the priority for this service record. * @return */
public int priority() { int ret = delegate.priority(); return ret; }
Returns the weight of this service record.
Returns:
/** * Returns the weight of this service record. * @return */
public int weight() { int ret = delegate.weight(); return ret; }
Returns the port the service is running on.
Returns:
/** * Returns the port the service is running on. * @return */
public int port() { int ret = delegate.port(); return ret; }
Returns the name for the server being queried.
Returns:
/** * Returns the name for the server being queried. * @return */
public String name() { String ret = delegate.name(); return ret; }
Returns the protocol for the service being queried (i.e. "_tcp").
Returns:
/** * Returns the protocol for the service being queried (i.e. "_tcp"). * @return */
public String protocol() { String ret = delegate.protocol(); return ret; }
Returns the service's name (i.e. "_http").
Returns:
/** * Returns the service's name (i.e. "_http"). * @return */
public String service() { String ret = delegate.service(); return ret; }
Returns the name of the host for the service.
Returns:
/** * Returns the name of the host for the service. * @return */
public String target() { String ret = delegate.target(); return ret; } public static SrvRecord newInstance(io.vertx.core.dns.SrvRecord arg) { return arg != null ? new SrvRecord(arg) : null; } }