All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.clustermate.service.cfg.LastAccessConfig Maven / Gradle / Ivy

There is a newer version: 0.10.5
Show newest version
package com.fasterxml.clustermate.service.cfg;

import org.skife.config.DataAmount;

/**
 * Configuration settings for the last-access store.
 * 
 * @since 0.9.6
 */
public class LastAccessConfig
{
    /**
     * How much cache should be give the last-access store?
     */
    public DataAmount cacheSize = new DataAmount("20MB");
    
    /**
     * Should we use deferred writes for storing last-accessed information?
     * Note that use of deferred writes can cause data loss if system
     * crashes; during normal shutdown, sync() will be called
     * if deferred writes are enabled.
     *

* Default (of no value) is same as false, meaning that * deferred writes are not enabled. */ public Boolean deferredWrites = null; /** * Default BDB-JE lock timeout (500 msecs) is bit short; let's up * the default to 5 seconds. */ public int lockTimeoutMsecs = 5000; /* /********************************************************************** /* Convenience accessors /********************************************************************** */ public boolean useDeferredWrites() { Boolean b = deferredWrites; return (b != null) && b.booleanValue(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy