public Exchange receiveNoWait() { return doReceive(-1); }
public PollingConsumer createPollingConsumer() throws Exception { HttpPollingConsumer answer = new HttpPollingConsumer(this); configurePollingConsumer(answer); return answer; }
protected Exchange doReceive(int timeout) { Exchange exchange = endpoint.createExchange(); HttpMethod method = createMethod(exchange);
public Exchange receive() { return doReceive(-1); }
public Exchange receive(long timeout) { return doReceive((int) timeout); }