Class BmEventFilter
- java.lang.Object
-
- com._1c.g5.v8.bm.integration.event.BmEventFilter
-
public class BmEventFilter extends Object
BM internal event filter. Used to tune up the performance of the solution based on BM via pre-filtering of incoming events before consumers start to process them.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BmEventFilter
associationFilter()
Gets an instance of filter for matchingBmAssociationEvent
s.static BmEventFilter
changeFilter()
Gets an instance of filter for matchingBmChangeEvent
s.static BmEventFilter
eClassAssociationFilter(org.eclipse.emf.ecore.EClass eClass)
Creates a preconfigured instance of association event filter for matching against specific object type.static BmEventFilter
eClassChangeFilter(org.eclipse.emf.ecore.EClass eClass)
Creates a preconfigured instance of change event filter for matching against specific object type.static BmEventFilter
externalEventFilter(Class<? extends BmSubEvent> eventClass)
Gets an instance of filter for matching external events of the specified class.org.eclipse.emf.ecore.EClass
getEClass()
Gets the type of matched EObject.Class<? extends BmSubEvent>
getEventClass()
Gets the type of the event to match.static BmEventFilter
resolvedFilter()
Gets an instance of filter for matchingBmResolvedEvent
s.
-
-
-
Method Detail
-
associationFilter
public static BmEventFilter associationFilter()
Gets an instance of filter for matchingBmAssociationEvent
s.- Returns:
- an instance of filter.
-
changeFilter
public static BmEventFilter changeFilter()
Gets an instance of filter for matchingBmChangeEvent
s.- Returns:
- an instance of filter.
-
eClassAssociationFilter
public static BmEventFilter eClassAssociationFilter(org.eclipse.emf.ecore.EClass eClass)
Creates a preconfigured instance of association event filter for matching against specific object type.- Parameters:
eClass
- The type of the object for matching.- Returns:
- The event filter instance.
-
eClassChangeFilter
public static BmEventFilter eClassChangeFilter(org.eclipse.emf.ecore.EClass eClass)
Creates a preconfigured instance of change event filter for matching against specific object type.- Parameters:
eClass
- The type of the object for matching.- Returns:
- The event filter instance.
-
externalEventFilter
public static BmEventFilter externalEventFilter(Class<? extends BmSubEvent> eventClass)
Gets an instance of filter for matching external events of the specified class.- Parameters:
eventClass
- the event class. May not benull
.- Returns:
- an instance of filter.
-
resolvedFilter
public static BmEventFilter resolvedFilter()
Gets an instance of filter for matchingBmResolvedEvent
s.- Returns:
- an instance of filter.
-
getEClass
public org.eclipse.emf.ecore.EClass getEClass()
Gets the type of matched EObject.- Returns:
- The matched EClass.
-
getEventClass
public Class<? extends BmSubEvent> getEventClass()
Gets the type of the event to match.- Returns:
- The event type for matching.
-
-