...
The parameters is provided by Camel in the createEndpoint method from DefaultComponent:
Code Block |
---|
protected abstract Endpoint<E> createEndpoint(String uri, String remaining, Map parameters)
|
The code is an example from the SEDA component that removes the size parameter:
Code Block |
---|
public BlockingQueue<Exchange> createQueue(String uri, Map parameters) {
int size = 1000;
Object value = parameters.remove("size");
if (value != null) {
Integer i = convertTo(Integer.class, value);
if (i != null) {
size = i;
}
}
return new LinkedBlockingQueue<Exchange>(size);
}
|
...