Package org.apache.excalibur.event.impl

Examples of org.apache.excalibur.event.impl.DefaultQueue


    }

    public void testThresholdDefaultQueue()
        throws Exception
    {
        this.performQueue( new DefaultQueue( new ThresholdEnqueuePredicate( 32 ) ) );
    }
View Full Code Here


    }

    public void testDefaultQueue()
        throws Exception
    {
        this.performQueue( new DefaultQueue() );
    }
View Full Code Here

    public void initialize( int count, long timeout ) throws Exception
    {
        this.stages = new Thread[ 2 ];

        this.queue = new DefaultQueue();
        this.queue.setTimeout( timeout );

        this.start = new QueueStart( count );
        this.start.setSink( this.queue );
        this.stages[ 0 ] = new Thread( this.start );
View Full Code Here

    }

    public void testMillionIterationOneElement()
        throws Exception
    {
        this.performMillionIterationOneElement( new DefaultQueue() );
    }
View Full Code Here

    }

    public void testMillionIterationTenElements()
        throws Exception
    {
        this.performMillionIterationTenElements( new DefaultQueue() );
    }
View Full Code Here

    /**
     * Create the CommandManager
     */
    public CommandManager() {
        m_queue = new DefaultQueue();
        m_signalHandlers = new HashMap();
        m_mutex = new ReentrantLock();
        m_eventHandler = new CommandEventHandler(Collections.unmodifiableMap(m_signalHandlers));
        m_sources = new Source[]{m_queue};
        m_failureHandler = NullCommandFailureHandler.SHARED_INSTANCE;
View Full Code Here

    /**
     * Create the CommandManager
     */
    public CommandManager()
    {
        m_queue = new DefaultQueue();
        m_signalHandlers = new HashMap();
        m_mutex = new ReentrantLock();
        m_eventHandler = new CommandEventHandler( Collections.unmodifiableMap( m_signalHandlers ) );
        m_sources = new Source[]{m_queue};
    }
View Full Code Here

    }

    public void setUp() throws Exception
    {
        m_config = new FortressConfig( FortressConfig.createDefaultConfig() );
        m_config.setCommandSink( new DefaultQueue() );
        m_config.setContextClassLoader( FortressConfigTestCase.class.getClassLoader() );
        m_config.setInstrumentManager( new TestInstrumentManager() );
        m_config.setLifecycleExtensionManager( new LifecycleExtensionManager() );
        m_config.setLoggerCategory( "test" );
        m_config.setLoggerManager( new DefaultLoggerManager() );
View Full Code Here

    /**
     * Create the CommandManager
     */
    public CommandManager() {
        m_queue = new DefaultQueue();
        m_signalHandlers = new HashMap();
        m_mutex = new ReentrantLock();
        m_eventHandler = new CommandEventHandler(Collections.unmodifiableMap(m_signalHandlers));
        m_sources = new Source[]{m_queue};
        m_failureHandler = NullCommandFailureHandler.SHARED_INSTANCE;
View Full Code Here

    }

    public void testThresholdDefaultQueue()
        throws Exception
    {
        this.performQueue( new DefaultQueue( new ThresholdEnqueuePredicate( 32 ) ) );
    }
View Full Code Here

TOP

Related Classes of org.apache.excalibur.event.impl.DefaultQueue

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.