|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.DefaultEndpoint org.apache.camel.component.browse.BrowseEndpoint
public class BrowseEndpoint
An endpoint which maintains a List
of Exchange
instances
which can be useful for tooling, debugging and visualising routes.
Constructor Summary | |
---|---|
BrowseEndpoint(String endpointUri)
|
|
BrowseEndpoint(String uri,
CamelContext camelContext)
|
|
BrowseEndpoint(String uri,
Component component)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
protected List<Exchange> |
createExchangeList()
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
List<Exchange> |
getExchanges()
Return the exchanges available on this endpoint |
TopicLoadBalancer |
getLoadBalancer()
|
boolean |
isSingleton()
Wheter this class supports being singleton or not. |
protected void |
onExchange(Exchange exchange)
Invoked on a message exchange being sent by a producer |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
start()
Starts the service |
void |
stop()
Stops the service |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.camel.Endpoint |
---|
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointKey, getEndpointUri, isLenientProperties, setCamelContext |
Constructor Detail |
---|
public BrowseEndpoint(String uri, CamelContext camelContext)
public BrowseEndpoint(String uri, Component component)
public BrowseEndpoint(String endpointUri)
Method Detail |
---|
public boolean isSingleton()
IsSingleton
isSingleton
in interface IsSingleton
public List<Exchange> getExchanges()
BrowsableEndpoint
getExchanges
in interface BrowsableEndpoint
public TopicLoadBalancer getLoadBalancer()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Producer createProducer() throws Exception
Endpoint
createProducer
in interface Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
createConsumer
in interface Endpoint
processor
- the given processor
Exception
- can be thrownprotected List<Exchange> createExchangeList()
protected void onExchange(Exchange exchange) throws Exception
exchange
- the exchange
Exception
- is thrown if failed to process the exchangepublic void start() throws Exception
Service
start
in interface Service
Exception
public void stop() throws Exception
Service
stop
in interface Service
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |