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

com.mockrunner.mock.jms.MockTemporaryQueue Maven / Gradle / Ivy

package com.mockrunner.mock.jms;

import javax.jms.JMSException;
import javax.jms.TemporaryQueue;

/**
 * Mock implementation of JMS TemporaryQueue.
 */
public class MockTemporaryQueue extends MockQueue implements TemporaryQueue
{
    private boolean deleted;
    
    public MockTemporaryQueue()
    {
        super("TemporaryQueue");
        deleted = false;
    }
    
    /**
     * Returns if this temporary queue is deleted.
     * @return true if this queue is deleted 
     */
    public boolean isDeleted()
    {
        return deleted;
    }

    public void delete() throws JMSException
    {
        deleted = true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy