Class SynchronizationAdapter

  • All Implemented Interfaces:
    org.apache.camel.Ordered, org.apache.camel.spi.Synchronization, org.apache.camel.spi.SynchronizationRouteAware, org.apache.camel.spi.SynchronizationVetoable

    public class SynchronizationAdapter
    extends Object
    implements org.apache.camel.spi.SynchronizationVetoable, org.apache.camel.Ordered, org.apache.camel.spi.SynchronizationRouteAware
    Simple Synchronization adapter with empty methods for easier overriding of single methods.
    • Constructor Detail

      • SynchronizationAdapter

        public SynchronizationAdapter()
    • Method Detail

      • onComplete

        public void onComplete​(org.apache.camel.Exchange exchange)
        Specified by:
        onComplete in interface org.apache.camel.spi.Synchronization
      • onFailure

        public void onFailure​(org.apache.camel.Exchange exchange)
        Specified by:
        onFailure in interface org.apache.camel.spi.Synchronization
      • onDone

        public void onDone​(org.apache.camel.Exchange exchange)
      • allowHandover

        public boolean allowHandover()
        Specified by:
        allowHandover in interface org.apache.camel.spi.SynchronizationVetoable
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.apache.camel.Ordered
      • onBeforeRoute

        public void onBeforeRoute​(org.apache.camel.Route route,
                                  org.apache.camel.Exchange exchange)
        Specified by:
        onBeforeRoute in interface org.apache.camel.spi.SynchronizationRouteAware
      • onAfterRoute

        public void onAfterRoute​(org.apache.camel.Route route,
                                 org.apache.camel.Exchange exchange)
        Specified by:
        onAfterRoute in interface org.apache.camel.spi.SynchronizationRouteAware