Class DynamicRouterControlChannelSendDynamicAware

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.component.SendDynamicAwareSupport
org.apache.camel.component.dynamicrouter.control.DynamicRouterControlChannelSendDynamicAware
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.SendDynamicAware, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

@SendDynamic("dynamic-router-control") public class DynamicRouterControlChannelSendDynamicAware extends org.apache.camel.support.component.SendDynamicAwareSupport
A SendDynamicAwareSupport implementation to process control channel messages for the Dynamic Router.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.camel.spi.SendDynamicAware

    org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry
  • Field Summary

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.camel.Processor
    createPostProcessor(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
    Creates an optional post Processor that will be executed afterward when the message has been sent dynamic.
    org.apache.camel.Processor
    createPreProcessor(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
    Creates the pre Processor that will prepare the Exchange with dynamic details from the given recipient.
    boolean
    The dynamic router control channel does not have any lenient properties.
    org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry
    prepare(org.apache.camel.Exchange exchange, String uri, String originalUri)
    Prepares for using optimized dynamic to by parsing the uri and returning an entry of details that are used for creating the pre- and post-processors, and the static uri.
    resolveStaticUri(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
    Resolves the static part of the uri that are used for creating a single Endpoint and Producer that will be reused for processing the optimised toD.

    Methods inherited from class org.apache.camel.support.component.SendDynamicAwareSupport

    asEndpointUri, doInit, endpointLenientProperties, endpointProperties, getCamelContext, getScheme, resolveRawParameterValues, setCamelContext, setScheme

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Constructor Details

    • DynamicRouterControlChannelSendDynamicAware

      public DynamicRouterControlChannelSendDynamicAware()
  • Method Details

    • isLenientProperties

      public boolean isLenientProperties()
      The dynamic router control channel does not have any lenient properties.
      Returns:
      false (constant)
    • prepare

      public org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry prepare(org.apache.camel.Exchange exchange, String uri, String originalUri) throws Exception
      Prepares for using optimized dynamic to by parsing the uri and returning an entry of details that are used for creating the pre- and post-processors, and the static uri.
      Parameters:
      exchange - the exchange
      uri - the resolved uri which is intended to be used
      originalUri - the original uri of the endpoint before any dynamic evaluation
      Returns:
      prepared information about the dynamic endpoint to use
      Throws:
      Exception - is thrown if error parsing the uri
    • resolveStaticUri

      public String resolveStaticUri(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
      Resolves the static part of the uri that are used for creating a single Endpoint and Producer that will be reused for processing the optimised toD.
      Parameters:
      exchange - the exchange
      entry - prepared information about the dynamic endpoint to use
      Returns:
      the static uri, or null to not let toD use this optimization.
    • createPreProcessor

      public org.apache.camel.Processor createPreProcessor(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
      Creates the pre Processor that will prepare the Exchange with dynamic details from the given recipient.
      Parameters:
      exchange - the exchange
      entry - prepared information about the dynamic endpoint to use
      Returns:
      the processor, or null to not let toD use this optimization.
    • createPostProcessor

      public org.apache.camel.Processor createPostProcessor(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
      Creates an optional post Processor that will be executed afterward when the message has been sent dynamic.
      Parameters:
      exchange - the exchange
      entry - prepared information about the dynamic endpoint to use
      Returns:
      the post processor, or null if no post processor is needed.