Package org.glassfish.hk2.extras.events
Interface DefaultTopicDistributionErrorService
When using the TopicDistributionService added with
ServiceLocatorUtilities.enableTopicDistribution(org.glassfish.hk2.api.ServiceLocator)
if a subscriber throws an exception this service will be called.
All implementation of this service will be called.-
Method Summary
Modifier and TypeMethodDescriptionvoid
subscribersFailed
(Topic<?> topic, Object message, MultiException error) This method will be called once perTopic.publish(Object)
call after the message has been distributed to all subscribers.
-
Method Details
-
subscribersFailed
This method will be called once perTopic.publish(Object)
call after the message has been distributed to all subscribers. TheMultiException
will contain the errors from any subscribers that threw exceptions. This method will not be called if no subscribers threw exceptions- Parameters:
topic
- The topic that the message was sent tomessage
- The message that was sent to the topicerror
- The exceptions thrown by the subscribers of thisTopic
-