@Contract public interface DefaultTopicDistributionErrorService
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.Modifier and Type | Method and Description |
---|---|
void |
subscribersFailed(Topic<?> topic,
Object message,
MultiException error)
This method will be called once per
Topic.publish(Object)
call after the message has been distributed to all subscribers. |
void subscribersFailed(Topic<?> topic, Object message, MultiException error)
Topic.publish(Object)
call after the message has been distributed to all subscribers.
The MultiException
will contain the errors from any
subscribers that threw exceptions. This method will
not be called if no subscribers threw exceptionstopic
- The topic that the message was sent tomessage
- The message that was sent to the topicerror
- The exceptions thrown by the subscribers of this Topic
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.