Package org.apache.jackrabbit.oak.jcr.session

Examples of org.apache.jackrabbit.oak.jcr.session.RefreshStrategy$Timed


                refreshInterval = getRefreshInterval(attributes);
            } else if (attributes.containsKey(REFRESH_INTERVAL)) {
                throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL + "'.");
            }

            RefreshStrategy refreshStrategy = createRefreshStrategy(refreshInterval);
            ContentSession contentSession = contentRepository.login(credentials, workspaceName);
            SessionDelegate sessionDelegate = createSessionDelegate(refreshStrategy, contentSession);
            SessionContext context = createSessionContext(
                    securityProvider, createAttributes(refreshInterval), sessionDelegate);
            return context.getSession();
View Full Code Here


     * </ul>
     * In addition a warning is logged once per session if the session is accessed after one
     * minute of inactivity.
     */
    private RefreshStrategy createRefreshStrategy(Long refreshInterval) {
        return new RefreshStrategy(refreshInterval == null
                ? new RefreshStrategy[] {
                new Once(false),
                new LogOnce(60),
                new ThreadSynchronising(threadSaveCount)}
                : new RefreshStrategy[] {
View Full Code Here

                refreshInterval = getRefreshInterval(attributes);
            } else if (attributes.containsKey(REFRESH_INTERVAL)) {
                throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL + "'.");
            }

            RefreshStrategy refreshStrategy = createRefreshStrategy(refreshInterval);
            ContentSession contentSession = contentRepository.login(credentials, workspaceName);
            SessionDelegate sessionDelegate = createSessionDelegate(refreshStrategy, contentSession);
            SessionContext context = createSessionContext(
                    statisticManager, securityProvider, createAttributes(refreshInterval), sessionDelegate);
            return context.getSession();
View Full Code Here

     * </ul>
     * In addition a warning is logged once per session if the session is accessed after one
     * minute of inactivity.
     */
    private RefreshStrategy createRefreshStrategy(Long refreshInterval) {
        return new RefreshStrategy(refreshInterval == null
                ? new RefreshStrategy[] {
                new Once(false),
                new LogOnce(60),
                new ThreadSynchronising(threadSaveCount)}
                : new RefreshStrategy[] {
View Full Code Here

            } else if (attributes.containsKey(REFRESH_INTERVAL)) {
                throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL + "'.");
            }
            boolean relaxedLocking = getRelaxedLocking(attributes);

            RefreshStrategy refreshStrategy = createRefreshStrategy(refreshInterval);
            ContentSession contentSession = contentRepository.login(credentials, workspaceName);
            SessionDelegate sessionDelegate = createSessionDelegate(refreshStrategy, contentSession);
            SessionContext context = createSessionContext(
                    statisticManager, securityProvider,
                    createAttributes(refreshInterval, relaxedLocking),
View Full Code Here

                refreshInterval = getRefreshInterval(attributes);
            } else if (attributes.containsKey(REFRESH_INTERVAL)) {
                throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL + "'.");
            }

            RefreshStrategy refreshStrategy = createRefreshStrategy(refreshInterval);
            ContentSession contentSession = contentRepository.login(credentials, workspaceName);
            SessionDelegate sessionDelegate = new SessionDelegate(contentSession, refreshStrategy);
            SessionContext context = createSessionContext(
                    securityProvider, createAttributes(refreshInterval), sessionDelegate);
            return context.getSession();
View Full Code Here

     * </ul>
     * In addition a warning is logged once per session if the session is accessed after one
     * minute of inactivity.
     */
    private RefreshStrategy createRefreshStrategy(Long refreshInterval) {
        return new RefreshStrategy(refreshInterval == null
                ? new RefreshStrategy[] {
                new Once(false),
                new LogOnce(60),
                new ThreadSynchronising(threadSaveCount)}
                : new RefreshStrategy[] {
View Full Code Here

                refreshInterval = getRefreshInterval(attributes);
            } else if (attributes.containsKey(REFRESH_INTERVAL)) {
                throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL + "'.");
            }

            RefreshStrategy refreshStrategy = createRefreshStrategy(refreshInterval);
            ContentSession contentSession = contentRepository.login(credentials, workspaceName);
            SessionDelegate sessionDelegate = new SessionDelegate(contentSession, refreshStrategy);
            SessionContext context = createSessionContext(
                    securityProvider, createAttributes(refreshInterval), sessionDelegate);
            return context.getSession();
View Full Code Here

     * </ul>
     * In addition a warning is logged once per session if the session is accessed after one
     * minute of inactivity.
     */
    private RefreshStrategy createRefreshStrategy(Long refreshInterval) {
        return new RefreshStrategy(refreshInterval == null
                ? new RefreshStrategy[] {
                new Once(false),
                new LogOnce(60),
                new ThreadSynchronising(threadSaveCount)}
                : new RefreshStrategy[] {
View Full Code Here

            } else if (attributes.containsKey(REFRESH_INTERVAL)) {
                throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL + "'.");
            }
            boolean relaxedLocking = getRelaxedLocking(attributes);

            RefreshStrategy refreshStrategy = createRefreshStrategy(refreshInterval);
            ContentSession contentSession = contentRepository.login(credentials, workspaceName);
            SessionDelegate sessionDelegate = createSessionDelegate(refreshStrategy, contentSession);
            SessionContext context = createSessionContext(
                    statisticManager, securityProvider,
                    createAttributes(refreshInterval, relaxedLocking),
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.jcr.session.RefreshStrategy$Timed

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.