Class DefaultPubSubMessageReceiverExceptionHandler
- java.lang.Object
-
- io.micronaut.gcp.pubsub.exception.DefaultPubSubMessageReceiverExceptionHandler
-
- All Implemented Interfaces:
io.micronaut.core.exceptions.ExceptionHandler<PubSubMessageReceiverException>,PubSubMessageReceiverExceptionHandler
@Singleton @Primary public class DefaultPubSubMessageReceiverExceptionHandler extends java.lang.Object implements PubSubMessageReceiverExceptionHandler
Handles any exception on beans of typePubSubListenerthat do not implementPubSubMessageReceiverExceptionHandlerinterface. Only logs the error. Messages will not be acked and will be redelivered for as long the subscription configuration is set for message retries.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
-
Constructor Summary
Constructors Constructor Description DefaultPubSubMessageReceiverExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(PubSubMessageReceiverException exception)
-
-
-
Method Detail
-
handle
public void handle(PubSubMessageReceiverException exception)
- Specified by:
handlein interfaceio.micronaut.core.exceptions.ExceptionHandler<PubSubMessageReceiverException>
-
-