Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.transistore.service.store;
 
 
{
    
Flag mostly used by tests to force updates of last-accessed time stamps.
    protected boolean _defaultUpdateLastAccess = false;
    
            Stores<BasicTSKeyStoredEntry<BasicTSKey>> stores,
            ClusterViewByServer cluster,
            boolean defaultUpdateLastAccess)
    {
        super(stuffstorescluster);
         = defaultUpdateLastAccess;
    }
    
    /*
    /**********************************************************************
    /* Extracting last-accessed/updated info from key
    /**********************************************************************
     */
    @Override
    {
        /* 31-Jan-2012, tatu: For now let's only enable last-access time tracking
         *   for tests, since there's no good way to pass that with request, and it simply adds
         *   overhead without benefits (for now)
         */
        if () {
            return .;
        }
        return .;
    }
    /*
    /**********************************************************************
    /* Updates to last-accessed/updated info
    /**********************************************************************
     */
        
    @Override
    protected void updateLastAccessedForGet(ServiceRequest requestServiceResponse response,
            StoredEntry<BasicTSKeyentrylong accessTime)
    {
        _updateLastAccessed(entry.getKey(), entryaccessTime);
    }
    @Override
    protected void updateLastAccessedForHead(ServiceRequest requestServiceResponse response,
            StoredEntry<BasicTSKeyentrylong accessTime)
    {
        _updateLastAccessed(entry.getKey(), entryaccessTime);
    }
    
    /*
    /**********************************************************************
    /* Internal methods
    /**********************************************************************
     */
    
    private void _updateLastAccessed(BasicTSKey keyStoredEntry<BasicTSKeyentrylong accessTime)
    {
        .getLastAccessStore().updateLastAccess(entryaccessTime);
    }
New to GrepCode? Check out our FAQ X