uk.ac.soton.itinnovation.grid.service.utils.reportapi
Class ReportQueue

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.reportapi.ReportQueue

public class ReportQueue
extends Object


Constructor Summary
ReportQueue()
          Public constructor of ReportQueue.
 
Method Summary
 void add(NotificationMessage message)
           
 boolean isEmpty()
           
 NotificationMessage peekOldestMessage()
          Get the oldest message in the queue.
 NotificationMessage[] poll(int MaximumNumber)
           
 NotificationMessage[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportQueue

public ReportQueue()
Public constructor of ReportQueue.

Method Detail

add

public void add(NotificationMessage message)

poll

public NotificationMessage[] poll(int MaximumNumber)

toArray

public NotificationMessage[] toArray()

isEmpty

public boolean isEmpty()

peekOldestMessage

public NotificationMessage peekOldestMessage()
Get the oldest message in the queue. The message is NOT removed from the queue.

Returns:
the oldest message, or null if the queue is empty


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.