public class KratiProducer extends DefaultProducer
Modifier and Type | Field and Description |
---|---|
protected krati.store.DataStore<Object,Object> |
dataStore |
protected KratiEndpoint |
endpoint |
log
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
KratiProducer(KratiEndpoint endpoint,
krati.store.DataStore<Object,Object> dataStore) |
Modifier and Type | Method and Description |
---|---|
Object |
getKey(Exchange exchange)
Retrieves the key from the URI or from the exchange headers.
|
String |
getOperation(Exchange exchange)
Retrieves the operation from the URI or from the exchange headers.
|
Object |
getValue(Exchange exchange)
Retrieves the value from the URI or from the exchange headers/body.
|
void |
process(Exchange exchange)
Processes the message exchange
|
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
protected final KratiEndpoint endpoint
public KratiProducer(KratiEndpoint endpoint, krati.store.DataStore<Object,Object> dataStore)
public void process(Exchange exchange) throws Exception
Processor
exchange
- the message exchangeException
- if an internal processing error has occurred.public String getOperation(Exchange exchange)
public Object getKey(Exchange exchange)
Apache CAMEL