Examples of RefreshSpecification


Examples of org.apache.cayenne.cache.OSQueryCache.RefreshSpecification

        OSQueryCache cache = new OSQueryCache(new GeneralCacheAdministrator(), props);

        assertNotNull(cache.refreshSpecifications);
        assertEquals(2, cache.refreshSpecifications.size());

        RefreshSpecification abc = cache.refreshSpecifications.get("ABC");
        assertNotNull(abc);
        assertEquals("12 * * * * *", abc.cronExpression);
        assertEquals(25, abc.refreshPeriod);

        RefreshSpecification xyz = cache.refreshSpecifications.get("XYZ");
        assertNotNull(xyz);
        assertEquals("24 * * * * *", xyz.cronExpression);
        assertEquals(35, xyz.refreshPeriod);
    }
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.