Class DelegatingChannelExceptionHandler<T>
- java.lang.Object
-
- de.quantummaid.eventmaid.messageBus.internal.exception.DelegatingChannelExceptionHandler<T>
-
- All Implemented Interfaces:
ChannelExceptionHandler<T>
public final class DelegatingChannelExceptionHandler<T> extends Object implements ChannelExceptionHandler<T>
-
-
Constructor Summary
Constructors Constructor Description DelegatingChannelExceptionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> DelegatingChannelExceptionHandler<T>delegatingChannelExceptionHandlerForAcceptingChannel(MessageBusExceptionHandler messageBusExceptionHandler)static <T> DelegatingChannelExceptionHandler<T>delegatingChannelExceptionHandlerForDeliveryChannel(MessageBusExceptionHandler messageBusExceptionHandler)voidhandleBubbledUpException(BubbleUpWrappedException e)voidhandleFilterException(ProcessingContext<T> message, Exception e)Method, that is called, when an exception is thrown inside aFilter.voidhandleSubscriberException(ProcessingContext<T> message, Exception e)When the delivery should be aborted, this method is called to handle the exception.booleanshouldSubscriberErrorBeHandledAndDeliveryAborted(ProcessingContext<T> message, Exception e)When an exception is thrown inside the final action, this message can decide, if the message should be ignored or if the delivery should be aborted andhandleSubscriberExceptionshould be called.
-
-
-
Method Detail
-
delegatingChannelExceptionHandlerForDeliveryChannel
public static <T> DelegatingChannelExceptionHandler<T> delegatingChannelExceptionHandlerForDeliveryChannel(MessageBusExceptionHandler messageBusExceptionHandler)
-
delegatingChannelExceptionHandlerForAcceptingChannel
public static <T> DelegatingChannelExceptionHandler<T> delegatingChannelExceptionHandlerForAcceptingChannel(MessageBusExceptionHandler messageBusExceptionHandler)
-
shouldSubscriberErrorBeHandledAndDeliveryAborted
public boolean shouldSubscriberErrorBeHandledAndDeliveryAborted(ProcessingContext<T> message, Exception e)
Description copied from interface:ChannelExceptionHandlerWhen an exception is thrown inside the final action, this message can decide, if the message should be ignored or if the delivery should be aborted andhandleSubscriberExceptionshould be called.- Specified by:
shouldSubscriberErrorBeHandledAndDeliveryAbortedin interfaceChannelExceptionHandler<T>- Parameters:
message- the message, that caused the exceptione- the thrown exception- Returns:
- if the delivery should be aborted and the exception be handled;
falseif the exception should be ignored
-
handleSubscriberException
public void handleSubscriberException(ProcessingContext<T> message, Exception e)
Description copied from interface:ChannelExceptionHandlerWhen the delivery should be aborted, this method is called to handle the exception.- Specified by:
handleSubscriberExceptionin interfaceChannelExceptionHandler<T>- Parameters:
message- the message, that caused the exceptione- the thrown exception
-
handleFilterException
public void handleFilterException(ProcessingContext<T> message, Exception e)
Description copied from interface:ChannelExceptionHandlerMethod, that is called, when an exception is thrown inside aFilter.- Specified by:
handleFilterExceptionin interfaceChannelExceptionHandler<T>- Parameters:
message- the message, that caused the exceptione- the thrown exception
-
handleBubbledUpException
public void handleBubbledUpException(BubbleUpWrappedException e)
- Specified by:
handleBubbledUpExceptionin interfaceChannelExceptionHandler<T>
-
-