Class CamelInternalProcessor.RouteLifecycleAdvice

  • All Implemented Interfaces:
    org.apache.camel.spi.CamelInternalProcessorAdvice<Object>
    Enclosing class:
    CamelInternalProcessor

    public static class CamelInternalProcessor.RouteLifecycleAdvice
    extends Object
    implements org.apache.camel.spi.CamelInternalProcessorAdvice<Object>
    Advice to invoke callbacks for before and after routing.
    • Constructor Detail

      • RouteLifecycleAdvice

        public RouteLifecycleAdvice()
    • Method Detail

      • setRoute

        public void setRoute​(org.apache.camel.Route route)
      • before

        public Object before​(org.apache.camel.Exchange exchange)
                      throws Exception
        Specified by:
        before in interface org.apache.camel.spi.CamelInternalProcessorAdvice<Object>
        Throws:
        Exception
      • after

        public void after​(org.apache.camel.Exchange exchange,
                          Object object)
                   throws Exception
        Specified by:
        after in interface org.apache.camel.spi.CamelInternalProcessorAdvice<Object>
        Throws:
        Exception
      • hasState

        public boolean hasState()
        Specified by:
        hasState in interface org.apache.camel.spi.CamelInternalProcessorAdvice<Object>