Examples of PipelineCacheState


Examples of com.volantis.xml.pipeline.sax.cache.PipelineCacheState

        assertNotNull(entry);

        final SystemClock clock = SystemClock.getDefaultInstance();
        ProviderResult result = new ProviderResult(new Integer(1),
            cache.getRootGroup(), true,
            new PipelineCacheState(
                clock.getCurrentTime().addPeriod(Period.inSeconds(2))));
        async.update(result);

        CacheableObjectProvider cacheableObjectProvider =
            new ExpiredObjectsRemainExpiredCacheableObjectProvider(cache.getRootGroup());
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.cache.PipelineCacheState

        }

        public ProviderResult retrieve(final SystemClock clock,
                                       final Object key,
                                       final CacheEntry entry) {
            final PipelineCacheState state = new PipelineCacheState(
                SystemClock.getDefaultInstance().getCurrentTime().addPeriod(
                    value.getDependency().getTimeToLive()));
            return new ProviderResult(value, group, cacheable, state);
        }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.cache.PipelineCacheState

                                CacheBodyOperationProcessState.PLAYBACK_AND_SUPPRESS;

                            final SystemClock clock =
                                SystemClock.getDefaultInstance();
                            final Time currentTime = clock.getCurrentTime();
                            final PipelineCacheState pcs =
                                new PipelineCacheState(currentTime.addPeriod(
                                    dependency.getTimeToLive()));
                            dependencyContext.addDependency(dependency);

                            // update the cache with the old value so other
                            // threads don't need to wait the timeout period
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.cache.PipelineCacheState

            }
            dependencyContext.addDependency(dependency);

            // Set the result to cachable based on the inErrorRecoveryMode
            // state.
            final PipelineCacheState pcs = new PipelineCacheState(
                clock.getCurrentTime().addPeriod(dependency.getTimeToLive()));
            final ProviderResult result = new ProviderResult(
                new RecordingWithDependency(recording, dependency),
                getCacheGroup(), !inErrorRecoveryMode, pcs);
            async.update(result);
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.