org.ws4d.java.structures
Class MessageIdBuffer

java.lang.Object
  extended by org.ws4d.java.structures.MessageIdBuffer

public class MessageIdBuffer
extends java.lang.Object


Constructor Summary
MessageIdBuffer()
           
MessageIdBuffer(int size)
           
 
Method Summary
 void clear()
           
 boolean contains(URI msgId)
           
 boolean containsOrEnqueue(URI msgId)
          Returns true, if buffer contains msg id, else false.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageIdBuffer

public MessageIdBuffer()

MessageIdBuffer

public MessageIdBuffer(int size)
Parameters:
size - size of the message buffer to allocate
Method Detail

contains

public boolean contains(URI msgId)

containsOrEnqueue

public boolean containsOrEnqueue(URI msgId)
Returns true, if buffer contains msg id, else false. If not contained, msg id is enqueued in buffer.

Parameters:
msgId - the message to check presence of or to enqueue
Returns:
true if msg was already present, false if it was just enqueued

clear

public void clear()