de.fzj.unicore.wsrflite.messaging
Interface PullPoint


public interface PullPoint

messages for a specific destination can be pulled off a queue using this interface

Author:
schuller

Method Summary
 void dispose()
          abort reading the messages, writing back any unread messages to the queue
 boolean hasNext()
          returns true if there is still a message to be read
 Message next()
          read the next message and remove if from the queue
 

Method Detail

hasNext

boolean hasNext()
returns true if there is still a message to be read

Returns:

next

Message next()
read the next message and remove if from the queue

Returns:

dispose

void dispose()
abort reading the messages, writing back any unread messages to the queue



Copyright © 2010. All Rights Reserved.