1.0.0

org.eclipse.soda.dk.notification
Class NotificationQueue

java.lang.Object
  extended by org.eclipse.soda.dk.notification.NotificationQueue

public class NotificationQueue
extends java.lang.Object

The InformationQueue class provides a queue of information objects.

Version:
1.0.0

Field Summary
protected  java.lang.Object[][] elements
          Define the elements (Object[][]) field.
(package private)  int length
          Define the length (int) field.
 
Constructor Summary
NotificationQueue()
          Constructs a standard BaseNotification object.
NotificationQueue(int size)
          Constructs an instance of this class from the specified size parameter.
 
Method Summary
 void broadcast(java.lang.String topic, java.util.Dictionary data)
          Method process.
 java.lang.Object[] dequeue(long time)
          Perform the dequeue method and return the Object result.
 void enqueue(java.lang.String topic, java.lang.Object data)
          Perform the enqueue action method.
 int getMaxSize()
          Gets the maximum size of the queue.
 void handleFull()
          Handle full.
 int size()
          Gets the size of the current elements on the queue.
 java.lang.String toString()
          Returns the string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

elements

protected java.lang.Object[][] elements
Define the elements (Object[][]) field.


length

int length
Define the length (int) field.

Constructor Detail

NotificationQueue

public NotificationQueue()
Constructs a standard BaseNotification object.

See Also:
NotificationQueue(int)

NotificationQueue

public NotificationQueue(int size)
Constructs an instance of this class from the specified size parameter. The size (int) parameter.

Parameters:
size - The size (int) parameter.
See Also:
NotificationQueue()
Method Detail

broadcast

public void broadcast(java.lang.String topic,
                      java.util.Dictionary data)
Method process. The topic (String) parameter. The data (Object) parameter.

Parameters:
topic - The topic (String) parameter.
data - The data (Dictionary) parameter.

dequeue

public java.lang.Object[] dequeue(long time)
Perform the dequeue method and return the Object result. long

Parameters:
time - The time (long) parameter.
Returns:
Results of the dequeue (Object[]) value.

enqueue

public void enqueue(java.lang.String topic,
                    java.lang.Object data)
Perform the enqueue action method. java.lang.Object The topic (String) parameter. The data (Object) parameter.

Parameters:
topic - The topic (String) parameter.
data - The data (Object) parameter.

getMaxSize

public int getMaxSize()
Gets the maximum size of the queue.

Returns:
Results of the get max size (int) value.

handleFull

public void handleFull()
Handle full.


size

public int size()
Gets the size of the current elements on the queue.

Returns:
Returns a int

toString

public java.lang.String toString()
Returns the string value.

Overrides:
toString in class java.lang.Object
Returns:
The string (String) value.

1.0.0

Copyright (c) 1999, 2007 IBM