Package com._1c.g5.aef2.events
Interface IServiceConsumer<T>
- Type Parameters:
T
- is the type of the external events that is sent from service.
- All Known Implementing Classes:
AbstractServiceConsumer
,BmChangeEventConsumer
,DerivedDataObjectStatusConsumer
,DistributionSupportChangeConsumer
,EditingLanguageChangeConsumer
,ProjectParametersConsumer
public interface IServiceConsumer<T>
The service consumer that consumes service events or messages and translates it to AEF
IServiceEvent
s
that will be sent to components by IServiceEventTracker
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Accepts the given event object from service and processes it.void
dispose()
Disposes the consumer.void
intitialize
(IServiceEventTracker tracker) Initializes the consumer with the given tracker.void
Notifies the consumer that the scope of processing service events was changed.
-
Method Details
-
intitialize
Initializes the consumer with the given tracker. Also it is the point to initialize listeners for external events.- Parameters:
tracker
- the tracker.
-
notifyServiceEventQualifierScopeChanged
Notifies the consumer that the scope of processing service events was changed.- Parameters:
qualifiers
- the service event qualifiers.
-
getEventTracker
IServiceEventTracker getEventTracker()- Returns:
- the event tracker.
-
accept
Accepts the given event object from service and processes it.- Parameters:
externalEvent
- the event or message object from service.
-
dispose
void dispose()Disposes the consumer.
-