org.apache.camel.component.routebox.direct
Class RouteboxDirectEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.routebox.RouteboxEndpoint
              extended by org.apache.camel.component.routebox.direct.RouteboxDirectEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId

public class RouteboxDirectEndpoint
extends RouteboxEndpoint


Constructor Summary
RouteboxDirectEndpoint(String endpointUri)
           
RouteboxDirectEndpoint(String endpointUri, Component component)
           
RouteboxDirectEndpoint(String uri, Component component, RouteboxConfiguration config)
           
 
Method Summary
 void addConsumer(RouteboxDirectConsumer consumer)
           
 Consumer createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 Producer createProducer()
          Creates a new producer which is used send messages into the endpoint
 RouteboxDirectConsumer getConsumer()
           
 boolean hasConsumer(RouteboxDirectConsumer consumer)
           
 boolean isSingleton()
          Whether this class supports being singleton or not.
 void removeConsumer(RouteboxDirectConsumer consumer)
           
 
Methods inherited from class org.apache.camel.component.routebox.RouteboxEndpoint
getConfig, setConfig
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

RouteboxDirectEndpoint

public RouteboxDirectEndpoint(String endpointUri)

RouteboxDirectEndpoint

public RouteboxDirectEndpoint(String endpointUri,
                              Component component)

RouteboxDirectEndpoint

public RouteboxDirectEndpoint(String uri,
                              Component component,
                              RouteboxConfiguration config)
Method Detail

createProducer

public Producer createProducer()
                        throws Exception
Description copied from interface: Endpoint
Creates a new producer which is used send messages into the endpoint

Returns:
a newly created producer
Throws:
Exception - can be thrown

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Description copied from interface: Endpoint
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor

Parameters:
processor - the given processor
Returns:
a newly created consumer
Throws:
Exception - can be thrown

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Whether this class supports being singleton or not.

Returns:
true to be a single shared instance, false to create new instances.

addConsumer

public void addConsumer(RouteboxDirectConsumer consumer)

removeConsumer

public void removeConsumer(RouteboxDirectConsumer consumer)

hasConsumer

public boolean hasConsumer(RouteboxDirectConsumer consumer)

getConsumer

public RouteboxDirectConsumer getConsumer()


Apache CAMEL