com.anysoft.rrm.handler.Default Maven / Gradle / Ivy
package com.anysoft.rrm.handler;
import com.anysoft.rrm.RRData;
import com.anysoft.rrm.RRModelManager;
import com.anysoft.stream.AbstractHandler;
import com.anysoft.util.Properties;
import com.anysoft.util.Settings;
import org.w3c.dom.Element;
/**
* 缺省处理
*
* @since 1.6.12.32 [20190429]
*/
public class Default extends AbstractHandler {
protected RRModelManager rrmm = null;
@Override
protected void onHandle(RRData data, long timestamp) {
if (rrmm == null){
rrmm = RRModelManager.get();
}
if (rrmm != null) {
rrmm.addModel(data, Settings.get());
}
}
@Override
protected void onFlush(long timestamp) {
}
@Override
protected void onConfigure(Element e, Properties p) {
}
}