Class HystrixResource


  • @Path("/hystrix")
    @ApplicationScoped
    public class HystrixResource
    extends Object
    • Field Detail

      • producerTemplate

        @Inject
        org.apache.camel.ProducerTemplate producerTemplate
    • Constructor Detail

      • HystrixResource

        public HystrixResource()
    • Method Detail

      • hystrixFallbackWithDelay

        @Path("/fallback/delay/{delayMilliseconds}")
        @GET
        @Produces("text/plain")
        public String hystrixFallbackWithDelay​(@PathParam("delayMilliseconds")
                                               long delayMilliseconds)
                                        throws Exception
        Throws:
        Exception
      • hystrixFallbackViaNetwork

        @Path("/fallback/network")
        @GET
        @Produces("text/plain")
        public String hystrixFallbackViaNetwork()
                                         throws Exception
        Throws:
        Exception