/**
 * <p>Copyright: Copyright (c) 2005</p>
 * <p>Company: Yandex</p>
 * <p>Date: 08.08.2006</p>
 * <p>Time: 11:42:01</p>
 */
package ru.yandex.wmtools.common.data.multidbpager;

import ru.yandex.common.framework.core.ServRequest;
import ru.yandex.wmtools.common.error.UserException;

/**
 * @author baton
 */
public interface MultiDbPagerFactory<T> {
    MultiDbPager<T> createPager(final ServRequest req, final ISortStrategyEnum<T> defaultSortStrategy) throws UserException;

    MultiDbPager<T> createPager(final ServRequest req, final ISortStrategyEnum<T> defaultSortStrategy, final int pageSize) throws UserException;
}
