|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.notification.NotificationQueue
public class NotificationQueue
The InformationQueue class provides a queue of information objects.
| 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 |
|---|
protected java.lang.Object[][] elements
int length
| Constructor Detail |
|---|
public NotificationQueue()
BaseNotification object.
NotificationQueue(int)public NotificationQueue(int size)
int) parameter.
size - The size (int) parameter.NotificationQueue()| Method Detail |
|---|
public void broadcast(java.lang.String topic,
java.util.Dictionary data)
String) parameter.
The data (Object) parameter.
topic - The topic (String) parameter.data - The data (Dictionary) parameter.public java.lang.Object[] dequeue(long time)
Object result.
long
time - The time (long) parameter.
Object[]) value.
public void enqueue(java.lang.String topic,
java.lang.Object data)
java.lang.Object
The topic (String) parameter.
The data (Object) parameter.
topic - The topic (String) parameter.data - The data (Object) parameter.public int getMaxSize()
int) value.public void handleFull()
public int size()
public java.lang.String toString()
toString in class java.lang.ObjectString) value.
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||