|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.ibatis.strategy.DefaultIBatisProcessingStategy
public class DefaultIBatisProcessingStategy
Default strategy for consuming messages for a route
Constructor Summary | |
---|---|
DefaultIBatisProcessingStategy()
|
Method Summary | |
---|---|
void |
commit(IBatisEndpoint endpoint,
org.apache.camel.Exchange exchange,
Object data,
String consumeStatements)
Commit callback if there are a statements to be run after processing. |
int |
getIsolation()
Returns the transaction isolation level set on the processing strategy. |
List<Object> |
poll(IBatisConsumer consumer,
IBatisEndpoint endpoint)
Called when record is being queried. |
void |
setIsolation(int isolation)
Sets the transaction isolation level on the processing strategy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIBatisProcessingStategy()
Method Detail |
---|
public void commit(IBatisEndpoint endpoint, org.apache.camel.Exchange exchange, Object data, String consumeStatements) throws Exception
IBatisProcessingStrategy
commit
in interface IBatisProcessingStrategy
endpoint
- the endpointexchange
- The exchange after it has been processeddata
- The original data delivered to the routeconsumeStatements
- Name of the statement(s) to run, will use SQL update. Use comma to provide multiple statements to run.
Exception
- can be thrown in case of errorpublic List<Object> poll(IBatisConsumer consumer, IBatisEndpoint endpoint) throws Exception
IBatisProcessingStrategy
poll
in interface IBatisProcessingStrategy
consumer
- the consumerendpoint
- the endpoint
List
Exception
- can be thrown in case of errorpublic int getIsolation()
IBatisProcessingStrategy
getIsolation
in interface IBatisProcessingStrategy
public void setIsolation(int isolation)
IBatisProcessingStrategy
setIsolation
in interface IBatisProcessingStrategy
isolation
- the transaction isolation level.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |