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

io.vertx.axle.rabbitmq.RabbitMQMessage Maven / Gradle / Ivy

There is a newer version: 1.6.0
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.axle.rabbitmq;

import java.util.Map;
import org.reactivestreams.Publisher;
import java.util.function.Consumer;
import java.util.concurrent.CompletionStage;

/**
 * Represent a message received message received in a rabbitmq-queue.
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.rabbitmq.RabbitMQMessage original} non RX-ified interface using Vert.x codegen. */ @io.vertx.lang.axle.Gen(io.vertx.rabbitmq.RabbitMQMessage.class) public class RabbitMQMessage { @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; RabbitMQMessage that = (RabbitMQMessage) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } public static final io.vertx.lang.axle.TypeArg __TYPE_ARG = new io.vertx.lang.axle.TypeArg<>( obj -> new RabbitMQMessage((io.vertx.rabbitmq.RabbitMQMessage) obj), RabbitMQMessage::getDelegate ); private final io.vertx.rabbitmq.RabbitMQMessage delegate; public RabbitMQMessage(io.vertx.rabbitmq.RabbitMQMessage delegate) { this.delegate = delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ RabbitMQMessage() { this.delegate = null; } public io.vertx.rabbitmq.RabbitMQMessage getDelegate() { return delegate; } /** * @return the message body */ public io.vertx.axle.core.buffer.Buffer body() { if (cached_0 != null) { return cached_0; } io.vertx.axle.core.buffer.Buffer ret = io.vertx.axle.core.buffer.Buffer.newInstance(delegate.body()); cached_0 = ret; return ret; } /** * @return the consumer tag associated with the consumer */ public String consumerTag() { if (cached_1 != null) { return cached_1; } String ret = delegate.consumerTag(); cached_1 = ret; return ret; } /** * @return packaging data for the message */ public io.vertx.axle.rabbitmq.Envelope envelope() { if (cached_2 != null) { return cached_2; } io.vertx.axle.rabbitmq.Envelope ret = io.vertx.axle.rabbitmq.Envelope.newInstance(delegate.envelope()); cached_2 = ret; return ret; } /** * @return content header data for the message */ public io.vertx.axle.rabbitmq.BasicProperties properties() { if (cached_3 != null) { return cached_3; } io.vertx.axle.rabbitmq.BasicProperties ret = io.vertx.axle.rabbitmq.BasicProperties.newInstance(delegate.properties()); cached_3 = ret; return ret; } private io.vertx.axle.core.buffer.Buffer cached_0; private String cached_1; private io.vertx.axle.rabbitmq.Envelope cached_2; private io.vertx.axle.rabbitmq.BasicProperties cached_3; public static RabbitMQMessage newInstance(io.vertx.rabbitmq.RabbitMQMessage arg) { return arg != null ? new RabbitMQMessage(arg) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy