Example usage for org.springframework.integration.store MessageGroupQueue take

List of usage examples for org.springframework.integration.store MessageGroupQueue take

Introduction

In this page you can find the example usage for org.springframework.integration.store MessageGroupQueue take.

Prototype

@Override
    public Message<?> take() throws InterruptedException 

Source Link

Usage

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*/
}