public Exchange receive() { return receive(JmsDestinationAccessor.RECEIVE_TIMEOUT_INDEFINITE_WAIT); }
public Exchange receive(long timeout) { setReceiveTimeout(timeout); Message message; // using the selector if (ObjectHelper.isNotEmpty(jmsEndpoint.getSelector())) { message = template.receiveSelected(jmsEndpoint.getSelector()); } else { message = template.receive(); } if (message != null) { return getEndpoint().createExchange(message, null); } return null; }
@Override public PollingConsumer createPollingConsumer() throws Exception { JmsPollingConsumer answer = new JmsPollingConsumer(this); configurePollingConsumer(answer); return answer; }
public Exchange receiveNoWait() { return receive(JmsDestinationAccessor.RECEIVE_TIMEOUT_NO_WAIT); }