Package com.volantis.cache.filter

Examples of com.volantis.cache.filter.CacheEntryFilter


                        // Determine whether to flush even or odd keys.
                        final int evenOrOdd = random.nextInt(2);

                        // Select those keys with even indeces.
                        group.flush(new CacheEntryFilter() {
                            public boolean select(CacheEntry entry) {
                                Key key = (Key) entry.getKey();
                                return (key.getIndex() % 2 == evenOrOdd);
                            }
                        });
View Full Code Here


    // Javadoc inherited.
    public void flushProject(
            RuntimeProject project,
            PolicyType policyType) {

        CacheEntryFilter filter = getFilter(policyType);

        Group group = project.getCacheGroup();
        group.flush(filter);
    }
View Full Code Here

        delegate.removeEntry(name);
    }

    // Javadoc inherited.
    public CacheEntryFilter getFilter(PolicyType policyType) {
        CacheEntryFilter filter = null;
        if (policyType != null) {
            filter = new PolicyTypeCacheEntryFilter(policyType);
        }
        return filter;
    }
View Full Code Here

     * @param policyType The type of policies to flush, may be null in which
     *                   case all policies of any type are flushed.
     */
    private void flushLocalPolicyCaches(PolicyType policyType) {
        Group group = policyCache.getLocalGroup();
        CacheEntryFilter filter = policyCache.getFilter(policyType);
        group.flush(filter);
    }
View Full Code Here

TOP

Related Classes of com.volantis.cache.filter.CacheEntryFilter

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.