2009-01-09 1.2.0

org.eclipse.soda.dk.device
Class NotificationQueue

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

public class NotificationQueue
extends java.lang.Object

The InformationQueue class provides a queue of information objects.

Since:
1.0
Version:
1.2.0

Field Summary
protected  java.lang.Object[] elementsData
          Define the elementsData (Object[]) field.
protected  java.lang.Object[] elementsTopic
          Define the elements topic (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)
          Broadcast with the specified topic and data parameters.
 void clear()
          Clear.
 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)
          Enqueue with the specified topic and data parameters.
 int getMaxSize()
          Gets the maximum size of the queue.
 void handleFull()
          Handle full.
 int size()
          Gets the size of the current elementsData 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

elementsData

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


elementsTopic

protected java.lang.Object[] elementsTopic
Define the elements topic (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.

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

broadcast

public void broadcast(java.lang.String topic,
                      java.util.Dictionary data)
Broadcast with the specified topic and data parameters.

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

clear

public void clear()
Clear.


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.

enqueue

public void enqueue(java.lang.String topic,
                    java.lang.Object data)
Enqueue with the specified topic and data parameters.

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 elementsData 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.

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.