Interface SlowConsumerStrategy
- All Known Implementing Classes:
AbortSlowAckConsumerStrategy,AbortSlowConsumerStrategy
public interface SlowConsumerStrategy
Interface for a strategy for dealing with slow consumers
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDestination(Destination destination) For Strategies that need to examine assigned destination for slow consumers periodically the destination is assigned here.voidsetBrokerService(Broker broker) Sets the Broker instance which can provide a Scheduler among other things.voidslowConsumer(ConnectionContext context, Subscription subs) Slow consumer event.
-
Method Details
-
slowConsumer
Slow consumer event.- Parameters:
context- Connection context of the subscription.subs- The subscription object for the slow consumer.
-
setBrokerService
Sets the Broker instance which can provide a Scheduler among other things.- Parameters:
broker- The running Broker.
-
addDestination
For Strategies that need to examine assigned destination for slow consumers periodically the destination is assigned here. If the strategy doesn't is event driven it can just ignore assigned destination.- Parameters:
destination- A destination to add to a watch list.
-