Examples of ICacheElementSerialized


Examples of org.apache.jcs.engine.behavior.ICacheElementSerialized

    {
        if ( true )
        {
            if ( !this.irca.getGetOnly() )
            {
                ICacheElementSerialized serialized = null;
                try
                {
                    if ( log.isDebugEnabled() )
                    {
                        log.debug( "sending item to remote server" );
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElementSerialized

        attr.setMaxLifeSeconds( 34 );

        ICacheElement before = new CacheElement( cacheName, key, value );
        before.setElementAttributes( attr );

        ICacheElementSerialized serialized = SerializationConversionUtil.getSerializedCacheElement( before,
                                                                                                    elementSerializer );
        assertNotNull( "Should have a serialized object.", serialized );
        System.out.println( "testSimpleConversion, " + serialized );

        ICacheElement after = SerializationConversionUtil.getDeSerializedCacheElement( serialized, elementSerializer );
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElementSerialized

                // we could just use the default.
                log.warn( "ElementSerializer is null.  Could not serialize object." );
                throw new IOException( "Could not serialize object.  The ElementSerializer is null." );
            }
        }
        ICacheElementSerialized serialized = new CacheElementSerialized( element.getCacheName(), element.getKey(),
                                                                         serialzedValue, element.getElementAttributes() );

        return serialized;
    }
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElementSerialized

        IElementAttributes attr = new ElementAttributes();
        attr.setMaxLifeSeconds( 34 );

        IElementSerializer elementSerializer = new StandardSerializer();

        ICacheElementSerialized element = new CacheElementSerialized( cacheName, key, elementSerializer
            .serialize( value ), attr );
        listener.handlePut( element );

        ICacheElement after = cacheMgr.getCache( cacheName ).get( key );
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElementSerialized

        IElementAttributes attr = new ElementAttributes();
        attr.setMaxLifeSeconds( 34 );

        IElementSerializer elementSerializer = new StandardSerializer();

        ICacheElementSerialized element = new CacheElementSerialized( cacheName, key, elementSerializer
            .serialize( value ), attr );
        listener.handlePut( element );

        ICacheElement after = cacheMgr.getCache( cacheName ).get( key );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.