List of usage examples for org.apache.commons.configuration Configuration getInt
int getInt(String key, int defaultValue);
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())); }