
org.simple4j.eventdistributor.japi.EventTargetRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of EventDistributor Show documentation
Show all versions of EventDistributor Show documentation
RDBMS based messaging as an alternative to other standard messaging like JMS / Kafka
The newest version!
package org.simple4j.eventdistributor.japi;
import java.util.List;
import org.simple4j.eventdistributor.beans.Event;
/**
* Abstract class to hold the rules to map event to target systems.
*
*/
public abstract class EventTargetRule
{
protected List targetIds = null;
public List getTargetIds()
{
return targetIds;
}
public void setTargetIds(List targetIds)
{
this.targetIds = targetIds;
}
/**
* This method will return true if the rule matches for the event.
*
* Rule evaluation should not depend on source of the event as that will cause
* conflict with duplicate detection logic which does not include source value check.
*
* @param event - the rule will be applied on this event instance
* @return - return true if the rule matches
*
*/
public abstract boolean eval(Event event);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy