Package org.jacorb.notification.queue

Examples of org.jacorb.notification.queue.RWLockEventQueueDecorator


                MaxEventsPerConsumer.value }, eventQueueConfigurationChangedCB);

        final MessageQueueAdapter initialEventQueue =
            getMessageQueueFactory().newMessageQueue(qosSettings_);

        pendingMessages_ = new RWLockEventQueueDecorator(initialEventQueue);

        pendingMessages_.addDiscardListener(discardListener_);

        eventTypes_.add(EVENT_MESSAGE_DISCARDED);
    }
View Full Code Here


                MessageQueueAdapter _messageQueue =
                    getMessageQueueFactory().newMessageQueue(qosSettings_);

                map.put(interfaceDescription.operations[x].name,
                        new RWLockEventQueueDecorator(_messageQueue));
            }
        }

        return map;
    }
View Full Code Here

            while (i.hasNext())
            {
                String _key = (String) i.next();

                RWLockEventQueueDecorator _queueAdapter =
                    (RWLockEventQueueDecorator) messageQueueMap_.get(_key);

                MessageQueueAdapter _newQueue = getMessageQueueFactory().newMessageQueue(qosSettings_);

                _queueAdapter.replaceDelegate(_newQueue);
            }

        } catch (InterruptedException e)
        {
            throw new RuntimeException(e.toString());
View Full Code Here

            while (i.hasNext())
            {
                String _key = (String) i.next();

                RWLockEventQueueDecorator _queueAdapter =
                    (RWLockEventQueueDecorator) messageQueueMap_.get(_key);

                _count += _queueAdapter.getPendingMessagesCount();
            }

            return _count;
        } catch (InterruptedException e)
        {
View Full Code Here

    {
        super.setUp();

        controlInitialQueue_ = MockControl.createControl(MessageQueueAdapter.class);
        mockInitialQueue_ = (MessageQueueAdapter) controlInitialQueue_.getMock();
        objectUnderTest_ = new RWLockEventQueueDecorator(mockInitialQueue_);

        controlReplacementQueue_ = MockControl.createControl(MessageQueueAdapter.class);
        mockReplacementQueue_ = (MessageQueueAdapter) controlReplacementQueue_.getMock();
    }
View Full Code Here

    {
        lock_ = new Object();

        MessageQueue queue = new BoundedFifoEventQueue(4, EventQueueOverflowStrategy.FIFO, lock_);

        objectUnderTest_ = new RWLockEventQueueDecorator(new DefaultMessageQueueAdapter(queue));
    }
View Full Code Here

                MaxEventsPerConsumer.value }, eventQueueConfigurationChangedCB);

        final MessageQueueAdapter initialEventQueue =
            getMessageQueueFactory().newMessageQueue(qosSettings_);

        pendingMessages_ = new RWLockEventQueueDecorator(initialEventQueue);

        pendingMessages_.addDiscardListener(discardListener_);

        eventTypes_.add(EVENT_MESSAGE_DISCARDED);
    }
View Full Code Here

                MessageQueueAdapter _messageQueue =
                    getMessageQueueFactory().newMessageQueue(qosSettings_);

                map.put(interfaceDescription.operations[x].name,
                        new RWLockEventQueueDecorator(_messageQueue));
            }
        }

        return map;
    }
View Full Code Here

            while (i.hasNext())
            {
                String _key = (String) i.next();

                RWLockEventQueueDecorator _queueAdapter =
                    (RWLockEventQueueDecorator) messageQueueMap_.get(_key);

                MessageQueueAdapter _newQueue = getMessageQueueFactory().newMessageQueue(qosSettings_);

                _queueAdapter.replaceDelegate(_newQueue);
            }

        } catch (InterruptedException e)
        {
            throw new RuntimeException(e.toString());
View Full Code Here

            while (i.hasNext())
            {
                String _key = (String) i.next();

                RWLockEventQueueDecorator _queueAdapter =
                    (RWLockEventQueueDecorator) messageQueueMap_.get(_key);

                _count += _queueAdapter.getPendingMessagesCount();
            }

            return _count;
        } catch (InterruptedException e)
        {
View Full Code Here

TOP

Related Classes of org.jacorb.notification.queue.RWLockEventQueueDecorator

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.