Hi,
Indeed there have been a few model changes and some structural ones, things should be covered in this forum post:
To answer your question then you can use the ClientEventService
and the addInternalSubscription()
method with a custom EventFilter.
Might also be worth looking at the DefaultMQTTHandler
which handles the standard attribute topics and uses the ClientEventService
to do this.
Not sure of your exact use case but there is also a new interface called AttributeEventInterceptor
which the built in GatewayService
uses to intercept AttributeEvents
coming through the system that are destined for a gateway (AgentService
also uses this mechanism to intercept writes destined for agent link attributes).
You can now use AttributeEvent.getSource()
to see where an AttributeEvent
orginated, this is a string but generally it is the simple class name of the source, might need to look through the code to see what it will be for events you are interested in.