Example usage for org.apache.commons.configuration FileConfiguration getLong

List of usage examples for org.apache.commons.configuration FileConfiguration getLong

Introduction

In this page you can find the example usage for org.apache.commons.configuration FileConfiguration getLong.

Prototype

long getLong(String key, long defaultValue);

Source Link

Document

Get a long associated with the given configuration key.

Usage

From source file:com.germinus.easyconf.AggregatedProperties.java

private Long getReloadDelay(CompositeConfiguration loadedConf, FileConfiguration newConf) {
    Long delay = newConf.getLong(Conventions.RELOAD_DELAY_PROPERTY, null);
    if (delay == null) {
        delay = loadedConf.getLong(Conventions.RELOAD_DELAY_PROPERTY, null);
    }//from   ww  w  . j  a v a2s.  c  o  m
    return delay;
}

From source file:com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties.java

private Long _getReloadDelay(CompositeConfiguration loadedCompositeConfiguration,
        FileConfiguration newFileConfiguration) {

    Long delay = newFileConfiguration.getLong(Conventions.RELOAD_DELAY_PROPERTY, null);

    if (delay == null) {
        delay = loadedCompositeConfiguration.getLong(Conventions.RELOAD_DELAY_PROPERTY, null);
    }/*from   w ww.java  2 s .  c o m*/

    return delay;
}