Package org.apache.excalibur.event

Examples of org.apache.excalibur.event.SinkFullException


            }
        }

        if (successful == 0 && m_oneSuccess)
        {
            throw new SinkFullException("Could not deliver one single element.");
        }
    }
View Full Code Here


            break;
        }

        if (successful == 0 && m_oneSuccess)
        {
            throw new SinkFullException("Could not deliver one single elements.");
        }
    }
View Full Code Here

            successful++;
            break;
        }
        if (successful == 0 && m_oneSuccess)
        {
            throw new SinkFullException("Could not deliver elements at all.");
        }

        return prepares;
    }
View Full Code Here

        if (successful < m_sinks.size())
        {
            // rollback all enqueues.
            prepares.abort();

            throw new SinkFullException("Could not deliver elements.");
        }

        return prepares;
    }
View Full Code Here

            m_mutex.acquire();
            try
            {
                if( elements.length + size() > maxSize() )
                {
                    throw new SinkFullException( "Not enough room to enqueue these elements." );
                }

                enqueue = new FixedSizePreparedEnqueue( this, elements );
            }
            finally
View Full Code Here

            m_mutex.acquire();
            try
            {
                if( elements.length + size() > maxSize() )
                {
                    throw new SinkFullException( "Not enough room to enqueue these elements." );
                }

                for( int i = 0; i < len; i++ )
                {
                    addElement( elements[ i ] );
View Full Code Here

            m_mutex.acquire();
            try
            {
                if( 1 + size() > maxSize() )
                {
                    throw new SinkFullException( "Not enough room to enqueue these elements." );
                }

                addElement( element );
            }
            finally
View Full Code Here

                {
                    enqueue = new DefaultPreparedEnqueue( this, elements );
                }
                else
                {
                    throw new SinkFullException( "Not enough room to enqueue these elements." );
                }
            }
            finally
            {
                m_mutex.release();
View Full Code Here

            m_mutex.acquire();
            try
            {
                if( ! getEnqueuePredicate().accept( elements, this ) )
                {
                    throw new SinkFullException( "Not enough room to enqueue these elements." );
                }

                for( int i = 0; i < len; i++ )
                {
                    m_elements.add( elements[ i ] );
View Full Code Here

            m_mutex.acquire();
            try
            {
                if( ! getEnqueuePredicate().accept(element, this) )
                {
                    throw new SinkFullException( "Not enough room to enqueue these elements." );
                }

                m_elements.add( element );
            }
            finally
View Full Code Here

TOP

Related Classes of org.apache.excalibur.event.SinkFullException

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.