}
return ssc;
}
public AsyncStoreConfig parseAsyncStoreConfig(Element element) {
AsyncStoreConfig asc = new AsyncStoreConfig();
if (element == null) {
asc.setEnabled(false);
} else {
boolean async = getBoolean(getAttributeValue(element, "enabled"));
asc.setEnabled(async);
if (async) {
String tmp = getAttributeValue(element, "batchSize");
if (existsAttribute(tmp)) asc.setBatchSize(getInt(tmp));
tmp = getAttributeValue(element, "pollWait");
if (existsAttribute(tmp)) asc.setPollWait(getLong(tmp));
tmp = getAttributeValue(element, "queueSize");
if (existsAttribute(tmp)) asc.setQueueSize(getInt(tmp));
tmp = getAttributeValue(element, "threadPoolSize");
if (existsAttribute(tmp)) asc.setThreadPoolSize(getInt(tmp));
}
}
return asc;
}