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

org.fusesource.stomp.jms.StompJmsTopic Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (C) 2010-2011, FuseSource Corp.  All rights reserved.
 *
 *     http://fusesource.com
 *
 * The software in this package is published under the terms of the
 * CDDL license a copy of which has been included with this distribution
 * in the license.txt file.
 */

package org.fusesource.stomp.jms;

import javax.jms.Topic;

/**
 * TemporaryQueue
 */
public class StompJmsTopic extends StompJmsDestination implements Topic {

    public StompJmsTopic() {
        super(null, null);
    }

    public StompJmsTopic(StompJmsConnection connection, String name) {
        this(connection.topicPrefix, name);
    }

    public StompJmsTopic copy() {
        final StompJmsTopic copy = new StompJmsTopic();
        copy.setProperties(getProperties());
        return copy;
    }


    /**
     * Constructor
     *
     * @param name
     */
    public StompJmsTopic(String type, String name) {
        super(type, name);
        this.topic = true;
    }

    /**
     * @return the name
     * @see javax.jms.Topic#getTopicName()
     */
    public String getTopicName() {
        return getName();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy