Class SimpleDataSet
- java.lang.Object
-
- org.apache.camel.component.dataset.DataSetSupport
-
- org.apache.camel.component.dataset.SimpleDataSet
-
- All Implemented Interfaces:
DataSet
public class SimpleDataSet extends DataSetSupport
A simple DataSet that allows a static payload to be used to create each message exchange along with using a pluggable transformer to randomize the message.
-
-
Constructor Summary
Constructors Constructor Description SimpleDataSet()
SimpleDataSet(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
createMessageBody(long messageIndex)
Creates the message body for a given messageObject
getDefaultBody()
void
setDefaultBody(Object defaultBody)
-
Methods inherited from class org.apache.camel.component.dataset.DataSetSupport
applyHeaders, assertMessageExpected, getDefaultHeaders, getOutputTransformer, getReportCount, getSize, populateDefaultHeaders, populateMessage, setDefaultHeaders, setOutputTransformer, setReportCount, setSize
-
-
-
-
Method Detail
-
getDefaultBody
public Object getDefaultBody()
-
setDefaultBody
public void setDefaultBody(Object defaultBody)
-
createMessageBody
protected Object createMessageBody(long messageIndex)
Creates the message body for a given message- Specified by:
createMessageBody
in classDataSetSupport
-
-