public void schedule(URI uri, EndpointHttpHandler endpointHttpHandler) {
        synchronized (scheduledHandlers) {
            CamelLogger.LOGGER.debug("Scheduling a deployment of endpoint {} from {}", uri, deploymentName);
            if (this.deployerService != null) {
                this.deployerService.deploy(uri, endpointHttpHandler);
            } else {
                scheduledHandlers.put(uri, endpointHttpHandler);
            }
        }
    }
public void schedule ( URI uri , EndpointHttpHandler endpointHttpHandler ) { synchronized ( scheduledHandlers ) { CamelLogger . LOGGER . debug ( "Scheduling a deployment of endpoint {} from {}" , uri , deploymentName ) ; if ( this . deployerService != null ) { this . deployerService . deploy ( uri , endpointHttpHandler ) ; } else { scheduledHandlers . put ( uri , endpointHttpHandler ) ; } } }
Either schedules the given HTTP endpoint for deployment once {@link #deployerService} becomes available or
deploys it instantly if the {@link #deployerService} is available already.

@param uri determines the path and protocol under which the HTTP endpoint should be exposed
@param endpointHttpHandler an {@link EndpointHttpHandler} to use for handling HTTP requests sent to the given
{@link URI}'s path