Package org.apache.jcs.engine.control.event

Examples of org.apache.jcs.engine.control.event.ElementEventHandlerMockImpl


    cacheAttr.setMaxMemoryIdleTimeSeconds( 1 );
    cacheAttr.setMaxSpoolPerRun( 3 );

    memory.setCacheAttributes( cacheAttr );

    ElementEventHandlerMockImpl handler = new ElementEventHandlerMockImpl();

    for ( int i = 0; i < 10; i++ )
    {
        String key = "key" + i;
        String value = "value";
View Full Code Here


                        {
                            long n_start = System.currentTimeMillis();
                            for ( int n = 0; n < num; n++ )
                            {
                                IElementAttributes attrp = cache_control.getDefaultElementAttributes();
                                ElementEventHandlerMockImpl hand = new ElementEventHandlerMockImpl();
                                attrp.addElementEventHandler( hand );
                                cache_control.put( "key" + n, "data" + n + " put from ta = junk", attrp );
                            }
                            long n_end = System.currentTimeMillis();
                            p( "---put " + num + " in " + String.valueOf( n_end - n_start ) + " millis ---" );
View Full Code Here

TOP

Related Classes of org.apache.jcs.engine.control.event.ElementEventHandlerMockImpl

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.