|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint<E>
public abstract class DefaultEndpoint<E extends Exchange>
A default endpoint useful for implementation inheritance
| Constructor Summary | |
|---|---|
protected |
DefaultEndpoint(String endpointUri,
CamelContext context)
|
protected |
DefaultEndpoint(String endpointUri,
Component component)
|
| Method Summary | |
|---|---|
E |
convertTo(Class<E> type,
Exchange exchange)
Converts the given exchange to the specified exchange type |
E |
createExchange(Exchange exchange)
Creates a new exchange for communicating with this exchange using the given exchange to pre-populate the values of the headers and messages |
protected ScheduledThreadPoolExecutor |
createExecutorService()
|
PollingConsumer<E> |
createPollingConsumer()
Creates a new Polling Consumer so that the caller can poll message exchanges from the consumer using PollingConsumer.receive(),
PollingConsumer.receiveNoWait() or
PollingConsumer.receive(long) whenever it is ready to do so
rather than using the Event
Based Consumer returned by Endpoint.createConsumer(Processor) |
boolean |
equals(Object object)
|
Component |
getComponent()
|
CamelContext |
getContext()
Returns the context which created the endpoint |
String |
getEndpointUri()
Returns the string representation of the endpoint URI |
Class<E> |
getExchangeType()
Returns the type of the exchange which is generated by this component |
ScheduledExecutorService |
getExecutorService()
|
int |
hashCode()
|
void |
setExecutorService(ScheduledExecutorService executorService)
|
E |
toExchangeType(Exchange exchange)
Converts the given exchange to this endpoints required type |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Endpoint |
|---|
createConsumer, createExchange, createProducer, isSingleton |
| Constructor Detail |
|---|
protected DefaultEndpoint(String endpointUri,
Component component)
protected DefaultEndpoint(String endpointUri,
CamelContext context)
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectpublic String toString()
toString in class Objectpublic String getEndpointUri()
Endpoint
getEndpointUri in interface Endpoint<E extends Exchange>public CamelContext getContext()
Endpoint
getContext in interface Endpoint<E extends Exchange>public Component getComponent()
public ScheduledExecutorService getExecutorService()
public void setExecutorService(ScheduledExecutorService executorService)
executorService - the executor to set
public PollingConsumer<E> createPollingConsumer()
throws Exception
EndpointPollingConsumer.receive(),
PollingConsumer.receiveNoWait() or
PollingConsumer.receive(long) whenever it is ready to do so
rather than using the Event
Based Consumer returned by Endpoint.createConsumer(Processor)
createPollingConsumer in interface Endpoint<E extends Exchange>Exception - if the pull consumer could not be created
public E convertTo(Class<E> type,
Exchange exchange)
public E createExchange(Exchange exchange)
Endpoint
createExchange in interface Endpoint<E extends Exchange>public E toExchangeType(Exchange exchange)
Endpoint
toExchangeType in interface Endpoint<E extends Exchange>public Class<E> getExchangeType()
protected ScheduledThreadPoolExecutor createExecutorService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||