2008-02-07 1.1.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.1.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)
           
 
Method Summary
 void broadcast(java.lang.String topic, java.util.Dictionary data)
           
 java.lang.Object[] dequeue(long time)
          Perform the dequeue method and return the Object result.
 void dequeue(long time, java.lang.Object[] object)
          Dequeue with the specified time and object parameters.
 void enqueue(java.lang.String topic, java.lang.Object data)
           
 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)
Parameters:
size - The size (int) parameter.
See Also:
NotificationQueue()
Method Detail

broadcast

public void broadcast(java.lang.String topic,
                      java.util.Dictionary data)
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.
See Also:
dequeue(long,Object[])

dequeue

public void dequeue(long time,
                    java.lang.Object[] object)
Dequeue with the specified time and object parameters.

Parameters:
time - The time (long) parameter.
object - The object (Object[]) parameter.
See Also:
dequeue(long)

enqueue

public void enqueue(java.lang.String topic,
                    java.lang.Object data)
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.

2008-02-07 1.1.0

Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.3.1.R33x_v20070828