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

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

Introduction

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

Prototype

public long getLong(String key, long defaultValue) 

Source Link

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 w  w w . j  a  v  a 2s. co  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. j a  v  a2 s  . c o m

    return delay;
}