com.github.bingoohuang.sqltrigger.TriggerBeanVo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sql-trigger Show documentation
Show all versions of sql-trigger Show documentation
delay queue based on redis
The newest version!
package com.github.bingoohuang.sqltrigger;
import com.google.common.collect.Lists;
import lombok.Data;
import java.lang.reflect.Method;
import java.util.List;
import java.util.stream.Collectors;
@Data
public class TriggerBeanVo {
private final List items = Lists.newArrayList();
public void add(TriggerType type, Method method) {
items.add(new TriggerBeanItem(type, method));
}
public List filter(TriggerType triggerType) {
return items.stream().filter(x -> x.getType() == triggerType).collect(Collectors.toList());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy