@ EventListener ( classes = CancelTargetAssignmentEvent . class ) protected void targetCancelAssignmentToDistributionSet ( final CancelTargetAssignmentEvent cancelEvent ) { if ( isNotFromSelf ( cancelEvent ) ) { return ; } sendCancelMessageToTarget ( cancelEvent . getTenant ( ) , cancelEvent . getEntity ( ) . getControllerId ( ) , cancelEvent . getActionId ( ) , cancelEvent . getEntity ( ) . getAddress ( ) ) ; }
Method to send a message to a RabbitMQ Exchange after the assignment of the Distribution set to a Target has been canceled .