Package org.glassfish.hk2.extras.events
Interface DefaultTopicDistributionErrorService
-
@Contract public interface DefaultTopicDistributionErrorService
When using the TopicDistributionService added withServiceLocatorUtilities.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
subscribersFailed(Topic<?> topic, java.lang.Object message, MultiException error)
This method will be called once perTopic.publish(Object)
call after the message has been distributed to all subscribers.
-
-
-
Method Detail
-
subscribersFailed
void subscribersFailed(Topic<?> topic, java.lang.Object message, MultiException error)
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
-
-