|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.device.nslog.servlet.NSBuffer
public class NSBuffer
Copyright (c) 2005, 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation
| Field Summary | |
|---|---|
protected java.lang.Object[][] |
elements
Define the elements (Object[][]) field. |
(package private) int |
length
Define the length (int) field. |
| Constructor Summary | |
|---|---|
NSBuffer()
Constructs a standard BaseNotification object. |
|
NSBuffer(int size)
Constructs an instance of this class from the specified size parameter. |
|
| Method Summary | |
|---|---|
java.lang.Object[] |
dequeue()
Perform the dequeue method and return the Object result. |
void |
enqueue(java.lang.Object topic,
java.lang.Object data)
Enqueue with the specified topic and data parameters. |
int |
getMaxSize()
Gets the maximum size of the buffer. |
java.lang.Object[][] |
getOrderedBuffer()
Sorted buffer contents without removing or losing origional position. |
void |
resize(int newsize)
Resize the buffer. |
int |
size()
Gets the current number elements in the buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object[][] elements
int length
| Constructor Detail |
|---|
public NSBuffer()
BaseNotification object.
NSBuffer(int)public NSBuffer(int size)
size - The size (int) parameter.NSBuffer()| Method Detail |
|---|
public java.lang.Object[] dequeue()
Object result.
Object[]) value.
public void enqueue(java.lang.Object topic,
java.lang.Object data)
topic - The topic (Object) parameter.data - The data (Object) parameter.public int getMaxSize()
int) value.public java.lang.Object[][] getOrderedBuffer()
Object[][] with contents sorted from oldest to newest.public void resize(int newsize)
newsize - The newsize (int) parameter.public int size()
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||