Class QueueCircuitBreakerConfigurationResourceManager

    • Constructor Detail

      • QueueCircuitBreakerConfigurationResourceManager

        public QueueCircuitBreakerConfigurationResourceManager​(io.vertx.core.Vertx vertx,
                                                               ResourceStorage storage,
                                                               String circuitBreakerConfigUri)
    • Method Detail

      • addRefreshable

        public void addRefreshable​(Refreshable refreshable)
        Adds a new Refreshable.
        All refreshables will be refreshed, if the QueueCircuitBreakerConfigurationResource changes.
        Parameters:
        refreshable - - an instance of Refreshable
      • handleConfigurationResource

        public boolean handleConfigurationResource​(io.vertx.core.http.HttpServerRequest request)
        Handles the provided request when the following conditions are met:
        • Request URI matches the configured circuit breaker configuration URI
        • Request method is either PUT or DELETE
        Parameters:
        request - the request to handle
        Returns:
        returns true if the specified conditions are met, false otherwise