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

com.github.fridujo.sample.amqp.Receiver Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package com.github.fridujo.sample.amqp;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class Receiver {

    private final List messages = new ArrayList<>();

    public void receiveMessage(String message) {
        System.out.println("Received <" + message + ">");
        this.messages.add(message);
    }

    public List getMessages() {
        return messages;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy