net.sf.ehcache.constructs.blocking.LockTimeoutException Java Examples

The following examples show how to use net.sf.ehcache.constructs.blocking.LockTimeoutException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HeadersPageCachingFilter.java    From lutece-core with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
/**
 * {@inheritDoc }
 */
@Override
protected void doFilter( HttpServletRequest request, HttpServletResponse response, FilterChain chain )
        throws AlreadyGzippedException, AlreadyCommittedException, FilterNonReentrantException, LockTimeoutException, Exception
{
    if ( !_bInit )
    {
        init( );
    }

    if ( _bEnable )
    {
        super.doFilter( request, response, chain );
        _logger.debug( "URI served from cache : " + request.getRequestURI( ) );
    }
    else
    {
        chain.doFilter( request, response );
    }
}
 
Example #2
Source File: FullPageCachingService.java    From lutece-core with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
/**
 * {@inheritDoc }
 */
@Override
protected void doFilter( HttpServletRequest request, HttpServletResponse response, FilterChain chain )
        throws AlreadyGzippedException, AlreadyCommittedException, FilterNonReentrantException, LockTimeoutException, Exception
{
    if ( !getInit( ) )
    {
        init( );
    }

    if ( SecurityService.isAuthenticationEnable( ) )
    {
        if ( isCacheEnable( ) )
        {
            AppLogService.info(
                    "The PageCachingService has been inhibited because MyLutece authentication is enabled. Please disable this service in the Lutece Administration." );
        }
        chain.doFilter( request, response );
    }
    else
    {
        super.doFilter( request, response, chain );
    }
}