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