| JGroupsBootstrapCacheLoaderFactory.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * The contents of this file are subject to the terms of the Liferay Enterprise
5 * Subscription License ("License"). You may not use this file except in
6 * compliance with the License. You can obtain a copy of the License by
7 * contacting Liferay, Inc. See the License for the specific language governing
8 * permissions and limitations under the License, including but not limited to
9 * distribution rights of the Software.
10 *
11 *
12 *
13 */
14
15 package com.liferay.portal.cache.ehcache;
16
17 import java.util.Properties;
18
19 import net.sf.ehcache.bootstrap.BootstrapCacheLoader;
20
21 /**
22 * <a href="JGroupsBootstrapCacheLoaderFactory.java.html"><b><i>View Source</i>
23 * </b></a>
24 *
25 * <p>
26 * See http://issues.liferay.com/browse/LPS-11061.
27 * </p>
28 *
29 * @author Shuyang Zhou
30 */
31 public class JGroupsBootstrapCacheLoaderFactory
32 extends
33 net.sf.ehcache.distribution.jgroups.JGroupsBootstrapCacheLoaderFactory {
34
35 public BootstrapCacheLoader createBootstrapCacheLoader(
36 Properties properties) {
37
38 boolean asynchronous = extractAndValidateBootstrapAsynchronously(
39 properties);
40 int maximumChunkSize = extractMaximumChunkSizeBytes(properties);
41
42 return new JGroupsBootstrapCacheLoader(asynchronous, maximumChunkSize);
43 }
44
45 }