Package com.volantis.cache

Examples of com.volantis.cache.CacheEntry


        AsyncResult async = cache.asyncQuery(cacheKey, Period.inSeconds(30));

        assertFalse(async.isReady());

        CacheEntry entry = async.getEntry();
        assertNotNull(entry);

        final SystemClock clock = SystemClock.getDefaultInstance();
        ProviderResult result = new ProviderResult(new Integer(1),
            cache.getRootGroup(), true,
View Full Code Here


            Throwable throwable = null;
            boolean failed = true;
            try {
                // Get the entry, this will return null if the entry is marked
                // as being uncacheable.
                CacheEntry entry = async.getEntry();

                // Get the provider to retrieve the object. It is given the
                // whole entry so that it can perform revalidation of an
                // existing entry if it has expired.
                result = provider.retrieve(clock, key, entry);
View Full Code Here

                dependencyContext.addDependency(value.getDependency());
            } else {

                // We should check to see if this thread is responsible for
                // updating the cached result.
                final CacheEntry entry = async.getEntry();
                if (entry == null) {

                    // Previous result wasn't cached, this thread _isn't_
                    // responsible for updating the cached result, so just
                    // forward the events as is.
View Full Code Here

TOP

Related Classes of com.volantis.cache.CacheEntry

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.