Package org.mule.util.queue.objectstore

Examples of org.mule.util.queue.objectstore.QueueKey


    @Override
    public void store(Serializable key, T value) throws ObjectStoreException
    {
        // This required because QueuePersistenceObject store will NOT complain in
        // cases where object already exists!
        QueueKey qKey = new QueueKey(partitionName, key);
        synchronized (this)
        {
            if (getStore().contains(qKey))
            {
                throw new ObjectAlreadyExistsException();
View Full Code Here


    }

    @Override
    public T retrieve(Serializable key) throws ObjectStoreException
    {
        return getStore().retrieve(new QueueKey(partitionName, key));
    }
View Full Code Here

    }

    @Override
    public T remove(Serializable key) throws ObjectStoreException
    {
        return getStore().remove(new QueueKey(partitionName, key));
    }
View Full Code Here

        // TODO this is NOT efficient!
        List<Serializable> results = new ArrayList<Serializable>();
        List<Serializable> keys = getStore().allKeys();
        for (Serializable key : keys)
        {
            QueueKey qKey = (QueueKey) key;
            if (qKey.queueName.equals(partitionName))
            {
                results.add(qKey.id);
            }
        }
View Full Code Here

TOP

Related Classes of org.mule.util.queue.objectstore.QueueKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.