public abstract class BaseSelectorProducer extends DefaultProducer
logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Modifier | Constructor and Description |
|---|---|
protected |
BaseSelectorProducer(Endpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Processor |
getProcessor(Exchange exchange)
Determine the processor to use to handle the exchange.
|
protected abstract void |
onMissingProcessor(Exchange exchange)
Invoked when no processor has been defined to process the message exchnage.
|
void |
process(Exchange exchange)
Processes the message exchange
|
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendprotected BaseSelectorProducer(Endpoint endpoint)
public void process(Exchange exchange) throws Exception
Processorexchange - the message exchangeException - if an internal processing error has occurred.protected abstract Processor getProcessor(Exchange exchange) throws Exception
exchange - the message exchangeExceptionprotected abstract void onMissingProcessor(Exchange exchange) throws Exception
exchange - the message exchangeExceptionApache Camel