Class RetryEventsEndpoint

java.lang.Object
io.github.resilience4j.retry.monitoring.endpoint.RetryEventsEndpoint

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

    • RetryEventsEndpoint

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

    • 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 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 String name, @Selector String eventType)
      Parameters:
      name - backend name
      eventType - retry event type
      Returns:
      the matching generated retry events