...
Camel ships with a support implementation of org.apache.camel.component.dataset.DataSet
, the org.apache.camel.component.dataset.DataSetSupport
class, that can be used as a base for implementing your own DataSet. Camel also ships with a default implementation, the org.apache.camel.component.dataset.SimpleDataSet
that can be used for testing.
Options
Div |
---|
class | confluenceTableSmall |
---|
|
Option | Default | Description |
---|
produceDelay | 3 | Allows a delay in ms to be specified, which causes producers to pause in order to simulate slow producers. Uses a minimum of 3 ms delay unless you set this option to -1 to force no delay at all. | consumeDelay | 0 | Allows a delay in ms to be specified, which causes consumers to pause in order to simulate slow consumers. | preloadSize | 0 | Sets how many messages should be preloaded (sent) before the route completes its initialization. | initialDelay | 1000 | Camel 2.1: Time period in millis to wait before starting sending messages. | minRate | 0 | Wait until the DataSet contains at least this number of messages |
|
Wiki Markup |
---|
{div:class=confluenceTableSmall}
|| Option || Default || Description ||
| {{produceDelay}} | 3 | Allows a delay in ms to be specified, which causes producers to pause in order to simulate slow producers. Uses a minimum of 3 ms delay unless you set this option to -1 to force no delay at all. |
| {{consumeDelay}} | 0 | Allows a delay in ms to be specified, which causes consumers to pause in order to simulate slow consumers. |
| {{preloadSize}} | 0 | Sets how many messages should be preloaded (sent) before the route completes its initialization. |
| {{initialDelay}} | 1000 | *Camel 2.1:* Time period in millis to wait before starting sending messages. |
| {{minRate}} | 0 | Wait until the DataSet contains at least this number of messages |
{div} |
You can append query options to the URI in the following format, ?option=value&option=value&...
...
Properties on SimpleDataSet
Div |
---|
class | confluenceTableSmall |
---|
|
Wiki Markup |
---|
{div:class=confluenceTableSmall}
||Property||Type||Default|| Description||
|{{defaultBody}} | {{Object}} | {{Property | Type | Default | Description |
---|
defaultBody
| Object |
}} | {{}}. |
|{{reportCount}} | {{long}} | {{-1}} | Specifies the number of messages to be received before reporting progress. Useful for showing progress of a large load test. If < 0, then {{size}} / 5, if is 0 then {{size}}, else set to {{reportCount}} value.|
|{{size}} | {{long}} | {{10}} |Specifies how many messages to send/consume.|
{div}. | reportCount
| long | -1 | Specifies the number of messages to be received before reporting progress. Useful for showing progress of a large load test. If < 0, then size / 5, if is 0 then size , else set to reportCount value. | size
| long | 10 | Specifies how many messages to send/consume. |
|
Include Page |
---|
| Endpoint See Also |
---|
| Endpoint See Also |
---|
|
...