org.jboss.mx.remoting
Class NotificationQueue

java.lang.Object
  extended byorg.jboss.mx.remoting.NotificationQueue
All Implemented Interfaces:
java.io.Serializable

public class NotificationQueue
extends java.lang.Object
implements java.io.Serializable

NotificationQueue is an object that holds one or more NotificationEntry objects. This object is created and passed from the server to the client during invocation so that the client and re-deliver Notifications to client-side NotificationListeners.

See Also:
Serialized Form

Constructor Summary
NotificationQueue(java.lang.String sessionId)
          create an empty queue
 
Method Summary
 void clear()
          clear the queue
 java.lang.String getSessionID()
          return the session ID associated with the queue
 boolean isEmpty()
          return true if there are no entries, false if there are 1..n entries
 java.util.Iterator iterator()
          return an Iterator of NotificationEntry objects
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationQueue

public NotificationQueue(java.lang.String sessionId)
create an empty queue

Parameters:
sessionId -
Method Detail

toString

public java.lang.String toString()

clear

public void clear()
clear the queue


getSessionID

public java.lang.String getSessionID()
return the session ID associated with the queue

Returns:

isEmpty

public boolean isEmpty()
return true if there are no entries, false if there are 1..n entries

Returns:

iterator

public java.util.Iterator iterator()
return an Iterator of NotificationEntry objects

Returns: