Name | Kind | Type | Required | Deprecated | Default Value | Enum Values | Description |
---|---|---|---|---|---|---|---|
statement | path | java.lang.String | true | false | The statement name in the MyBatis XML mapping file which maps to the query, insert, update or delete operation you wish to evaluate. | ||
statementType | parameter | org.apache.camel.component.mybatis.StatementType | false | SelectOne SelectList Insert InsertList Update UpdateList Delete DeleteList |
Mandatory to specify for the producer to control which kind of operation to invoke. | ||
maxMessagesPerPoll | parameter | int | false | ||||
outputHeader | parameter | java.lang.String | false | Store the query result in a header instead of the message body. By default, outputHeader == null and the query result is stored in the message body, any existing content in the message body is discarded. If outputHeader is set, the value is used as the name of the header to store the query result and the original message body is preserved. Setting outputHeader will also omit populating the default CamelMyBatisResult header since it would be the same as outputHeader all the time. | |||
inputHeader | parameter | java.lang.String | false | User the header value for input parameters instead of the message body. By default, inputHeader == null and the input parameters are taken from the message body. If outputHeader is set, the value is used and query parameters will be taken from the header instead of the body. | |||
startScheduler | parameter | boolean | false | true | |||
initialDelay | parameter | long | false | 1000 | |||
delay | parameter | long | false | 500 | |||
timeUnit | parameter | java.util.concurrent.TimeUnit | false | MILLISECONDS | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS |
||
useFixedDelay | parameter | boolean | false | true | |||
pollStrategy | parameter | org.apache.camel.spi.PollingConsumerPollStrategy | false | ||||
runLoggingLevel | parameter | org.apache.camel.LoggingLevel | false | TRACE | DEBUG ERROR INFO TRACE WARN OFF |
||
sendEmptyMessageWhenIdle | parameter | boolean | false | ||||
greedy | parameter | boolean | false | ||||
scheduler | parameter | org.apache.camel.spi.ScheduledPollConsumerScheduler | false | spring quartz2 |
|||
schedulerProperties | parameter | java.util.Map |
false | ||||
scheduledExecutorService | parameter | java.util.concurrent.ScheduledExecutorService | false | ||||
backoffMultiplier | parameter | int | false | ||||
backoffIdleThreshold | parameter | int | false | ||||
backoffErrorThreshold | parameter | int | false | ||||
exchangePattern | parameter | org.apache.camel.ExchangePattern | false | InOnly | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the default exchange pattern when creating an exchange | |
synchronous | parameter | boolean | false | false | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |
Consumer to read data from a database.
Name | Kind | Type | Required | Deprecated | Default Value | Enum Values | Description |
---|---|---|---|---|---|---|---|
maxMessagesPerPoll | parameter | int | false |