List of usage examples for org.springframework.integration.store MessageGroupQueue take
@Override
public Message<?> take() throws InterruptedException
From source file:org.springframework.integration.store.MessageGroupQueueTests.java
@Test public void testPutAndTake() throws Exception { MessageGroupQueue queue = new MessageGroupQueue(new SimpleMessageStore(), "FOO"); queue.put(new GenericMessage<String>("foo")); Message<?> result = queue.take(); assertNotNull(result);/*from w w w .j a va 2 s .co m*/ }