|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.impl.ScheduledPollConsumer
org.apache.camel.component.ibatis.IBatisConsumer
public class IBatisConsumer
Consumer to read data from databaase.
IBatisProcessingStrategy| Field Summary | |
|---|---|
protected int |
pendingExchanges
|
protected org.apache.camel.ShutdownRunningTask |
shutdownRunningTask
|
| Fields inherited from class org.apache.camel.impl.DefaultConsumer |
|---|
log |
| Constructor Summary | |
|---|---|
IBatisConsumer(IBatisEndpoint endpoint,
org.apache.camel.Processor processor)
|
|
| Method Summary | |
|---|---|
boolean |
deferShutdown(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
|
IBatisEndpoint |
getEndpoint()
|
String |
getOnConsume()
Gets the statement(s) to run after successful processing. |
int |
getPendingExchangesSize()
|
boolean |
isBatchAllowed()
|
boolean |
isRouteEmptyResultSet()
Indicates whether empty resultset should be allowed to be sent to the next hop or not |
boolean |
isUseIterator()
Indicates how resultset should be delivered to the route |
protected int |
poll()
Polls the database |
void |
prepareShutdown()
|
int |
processBatch(Queue<Object> exchanges)
|
void |
setMaxMessagesPerPoll(int maxMessagesPerPoll)
|
void |
setOnConsume(String onConsume)
Sets the statement to run after successful processing. |
void |
setRouteEmptyResultSet(boolean routeEmptyResultSet)
Sets whether empty resultset should be allowed to be sent to the next hop. |
void |
setUseIterator(boolean useIterator)
Sets how resultset should be delivered to route. |
| Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer |
|---|
afterPoll, beforePoll, doStart, doStop, doSuspend, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getTimeUnit, isPollAllowed, isPolling, isUseFixedDelay, onInit, run, setDelay, setInitialDelay, setPollStrategy, setRunLoggingLevel, setTimeUnit, setUseFixedDelay |
| Methods inherited from class org.apache.camel.impl.DefaultConsumer |
|---|
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Methods inherited from interface org.apache.camel.SuspendableService |
|---|
isSuspended, resume, suspend |
| Field Detail |
|---|
protected volatile org.apache.camel.ShutdownRunningTask shutdownRunningTask
protected volatile int pendingExchanges
| Constructor Detail |
|---|
public IBatisConsumer(IBatisEndpoint endpoint,
org.apache.camel.Processor processor)
throws Exception
Exception| Method Detail |
|---|
public IBatisEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.ConsumergetEndpoint in class org.apache.camel.impl.DefaultConsumer
protected int poll()
throws Exception
poll in class org.apache.camel.impl.ScheduledPollConsumerExceptionpublic void setMaxMessagesPerPoll(int maxMessagesPerPoll)
setMaxMessagesPerPoll in interface org.apache.camel.BatchConsumer
public int processBatch(Queue<Object> exchanges)
throws Exception
processBatch in interface org.apache.camel.BatchConsumerExceptionpublic boolean deferShutdown(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
deferShutdown in interface org.apache.camel.spi.ShutdownAwarepublic int getPendingExchangesSize()
getPendingExchangesSize in interface org.apache.camel.spi.ShutdownAwarepublic void prepareShutdown()
prepareShutdown in interface org.apache.camel.spi.ShutdownAwarepublic boolean isBatchAllowed()
isBatchAllowed in interface org.apache.camel.BatchConsumerpublic String getOnConsume()
public void setOnConsume(String onConsume)
public boolean isUseIterator()
public void setUseIterator(boolean useIterator)
public boolean isRouteEmptyResultSet()
public void setRouteEmptyResultSet(boolean routeEmptyResultSet)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||