Class RetryEventsEndpoint


  • @Endpoint(id="retryevents")
    public class RetryEventsEndpoint
    extends java.lang.Object
    rest api endpoint to retrieve retry events
    • Constructor Summary

      Constructors 
      Constructor Description
      RetryEventsEndpoint​(io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.retry.event.RetryEvent> eventConsumerRegistry)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.github.resilience4j.common.retry.monitoring.endpoint.RetryEventsEndpointResponse getAllRetryEvents()  
      io.github.resilience4j.common.retry.monitoring.endpoint.RetryEventsEndpointResponse getEventsFilteredByRetryName​(java.lang.String name)  
      io.github.resilience4j.common.retry.monitoring.endpoint.RetryEventsEndpointResponse getEventsFilteredByRetryNameAndEventType​(java.lang.String name, java.lang.String eventType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetryEventsEndpoint

        public RetryEventsEndpoint​(io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.retry.event.RetryEvent> eventConsumerRegistry)
    • Method Detail

      • getAllRetryEvents

        @ReadOperation
        public io.github.resilience4j.common.retry.monitoring.endpoint.RetryEventsEndpointResponse getAllRetryEvents()
        Returns:
        all retry generated events
      • getEventsFilteredByRetryName

        @ReadOperation
        public io.github.resilience4j.common.retry.monitoring.endpoint.RetryEventsEndpointResponse getEventsFilteredByRetryName​(@Selector
                                                                                                                                java.lang.String name)
        Parameters:
        name - backend name
        Returns:
        the retry events generated for this backend
      • getEventsFilteredByRetryNameAndEventType

        @ReadOperation
        public io.github.resilience4j.common.retry.monitoring.endpoint.RetryEventsEndpointResponse getEventsFilteredByRetryNameAndEventType​(@Selector
                                                                                                                                            java.lang.String name,
                                                                                                                                            @Selector
                                                                                                                                            java.lang.String eventType)
        Parameters:
        name - backend name
        eventType - retry event type
        Returns:
        the matching generated retry events