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

io.vertx.rxjava3.amqp.AmqpMessageBuilder Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR2
Show newest version
/*
 * 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.rxjava3.amqp;

import io.vertx.rxjava3.RxHelper;
import io.vertx.rxjava3.ObservableHelper;
import io.vertx.rxjava3.FlowableHelper;
import io.vertx.rxjava3.impl.AsyncResultMaybe;
import io.vertx.rxjava3.impl.AsyncResultSingle;
import io.vertx.rxjava3.impl.AsyncResultCompletable;
import io.vertx.rxjava3.WriteStreamObserver;
import io.vertx.rxjava3.WriteStreamSubscriber;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;

/**
 * Builder to create a new {@link io.vertx.rxjava3.amqp.AmqpMessage}.
 * 

* Reference about the different metadata can be found on * AMQP message properties. *

* Note that the body is set using withBodyAs* method depending on the passed type. * *

* NOTE: This class has been automatically generated from the {@link io.vertx.amqp.AmqpMessageBuilder original} non RX-ified interface using Vert.x codegen. */ @RxGen(io.vertx.amqp.AmqpMessageBuilder.class) public class AmqpMessageBuilder { @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; AmqpMessageBuilder that = (AmqpMessageBuilder) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } public static final TypeArg __TYPE_ARG = new TypeArg<>( obj -> new AmqpMessageBuilder((io.vertx.amqp.AmqpMessageBuilder) obj), AmqpMessageBuilder::getDelegate ); private final io.vertx.amqp.AmqpMessageBuilder delegate; public AmqpMessageBuilder(io.vertx.amqp.AmqpMessageBuilder delegate) { this.delegate = delegate; } public AmqpMessageBuilder(Object delegate) { this.delegate = (io.vertx.amqp.AmqpMessageBuilder)delegate; } public io.vertx.amqp.AmqpMessageBuilder getDelegate() { return delegate; } /** * @return a new instance of {@link io.vertx.rxjava3.amqp.AmqpMessageBuilder} */ public static io.vertx.rxjava3.amqp.AmqpMessageBuilder create() { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)io.vertx.amqp.AmqpMessageBuilder.create()); return ret; } /** * @return the message. */ public io.vertx.rxjava3.amqp.AmqpMessage build() { io.vertx.rxjava3.amqp.AmqpMessage ret = io.vertx.rxjava3.amqp.AmqpMessage.newInstance((io.vertx.amqp.AmqpMessage)delegate.build()); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder priority(short priority) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.priority(priority)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder durable(boolean durable) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.durable(durable)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder ttl(long ttl) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.ttl(ttl)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder firstAcquirer(boolean first) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.firstAcquirer(first)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder deliveryCount(int count) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.deliveryCount(count)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder id(java.lang.String id) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.id(id)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder address(java.lang.String address) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.address(address)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder replyTo(java.lang.String replyTo) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.replyTo(replyTo)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder correlationId(java.lang.String correlationId) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.correlationId(correlationId)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withBody(java.lang.String value) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withBody(value)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withSymbolAsBody(java.lang.String value) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withSymbolAsBody(value)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder subject(java.lang.String subject) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.subject(subject)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder contentType(java.lang.String ct) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.contentType(ct)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder contentEncoding(java.lang.String ct) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.contentEncoding(ct)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder expiryTime(long expiry) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.expiryTime(expiry)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder creationTime(long ct) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.creationTime(ct)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder groupId(java.lang.String gi) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.groupId(gi)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder replyToGroupId(java.lang.String rt) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.replyToGroupId(rt)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder applicationProperties(io.vertx.core.json.JsonObject props) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.applicationProperties(props)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withBooleanAsBody(boolean v) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withBooleanAsBody(v)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withByteAsBody(byte v) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withByteAsBody(v)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withShortAsBody(short v) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withShortAsBody(v)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withIntegerAsBody(int v) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withIntegerAsBody(v)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withLongAsBody(long v) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withLongAsBody(v)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withFloatAsBody(float v) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withFloatAsBody(v)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withDoubleAsBody(double v) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withDoubleAsBody(v)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withCharAsBody(char c) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withCharAsBody(c)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withBufferAsBody(io.vertx.rxjava3.core.buffer.Buffer buffer) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withBufferAsBody(buffer.getDelegate())); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withJsonObjectAsBody(io.vertx.core.json.JsonObject json) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withJsonObjectAsBody(json)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withJsonArrayAsBody(io.vertx.core.json.JsonArray json) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withJsonArrayAsBody(json)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withInstantAsBody(java.time.Instant v) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withInstantAsBody(v)); return ret; } public io.vertx.rxjava3.amqp.AmqpMessageBuilder withUuidAsBody(java.util.UUID v) { io.vertx.rxjava3.amqp.AmqpMessageBuilder ret = io.vertx.rxjava3.amqp.AmqpMessageBuilder.newInstance((io.vertx.amqp.AmqpMessageBuilder)delegate.withUuidAsBody(v)); return ret; } public static AmqpMessageBuilder newInstance(io.vertx.amqp.AmqpMessageBuilder arg) { return arg != null ? new AmqpMessageBuilder(arg) : null; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy