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 typePubSubListener
that do not implementPubSubMessageReceiverExceptionHandler
interface. 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 void
handle(PubSubMessageReceiverException exception)
-
-
-
Method Detail
-
handle
public void handle(PubSubMessageReceiverException exception)
- Specified by:
handle
in interfaceio.micronaut.core.exceptions.ExceptionHandler<PubSubMessageReceiverException>
-
-