Example usage for org.apache.commons.configuration Configuration getInt

List of usage examples for org.apache.commons.configuration Configuration getInt

Introduction

In this page you can find the example usage for org.apache.commons.configuration Configuration getInt.

Prototype

int getInt(String key, int defaultValue);

Source Link

Document

Get a int associated with the given configuration key.

Usage

From source file:org.wso2.andes.server.store.MemoryMessageStore.java

public void configureMessageStore(String name, MessageStoreRecoveryHandler recoveryHandler,
        Configuration config, LogSubject logSubject) throws Exception {
    if (_logSubject == null) {
        _logSubject = logSubject;//from   w w  w. j av a 2  s  .  co m
    }
    int hashtableCapacity = config.getInt(name + "." + HASHTABLE_CAPACITY_CONFIG, DEFAULT_HASHTABLE_CAPACITY);
    _log.info("Using capacity " + hashtableCapacity + " for hash tables");
    CurrentActor.get().message(_logSubject, MessageStoreMessages.CREATED(this.getClass().getName()));
}