private ThreadingProfile threadingProfile;
@Override
public ScatterGatherRouter getObject() throws Exception
{
ScatterGatherRouter sg = new ScatterGatherRouter();
sg.setTimeout(timeout);
for (MessageProcessor mp : this.messageProcessors)
{
sg.addRoute(mp);
}
if (this.aggregationStrategy != null)
{
sg.setAggregationStrategy(this.aggregationStrategy);
}
if (this.threadingProfile != null)
{
sg.setThreadingProfile(this.threadingProfile);
}
return sg;
}