|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kwfgrid.gwes.uiproxy.AbstractBuffer
public abstract class AbstractBuffer
Abstract implementation of buffer. This buffer supports the following properties:
| Field Summary | |
|---|---|
protected String |
_id
|
protected int |
_size
|
static int |
DEFAULT_SIZE
|
static String |
SIZE_PROPERTY_KEY
|
| Constructor Summary | |
|---|---|
AbstractBuffer()
|
|
| Method Summary | |
|---|---|
String |
getID()
Get the buffers unique ID. |
int |
getSize()
|
abstract void |
handle(Object message)
Handle a message. |
abstract Object[] |
read()
Read buffered messages. |
protected void |
setID(String id)
|
void |
setProperties(Properties props)
Generic implementation. |
void |
setProperty(String key,
String value)
This implementation only interprets the Buffer.size property. |
protected void |
setSize(int size)
Size should be set by setting property Buffer.size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_SIZE
public static final String SIZE_PROPERTY_KEY
protected int _size
protected String _id
| Constructor Detail |
|---|
public AbstractBuffer()
| Method Detail |
|---|
protected void setID(String id)
public String getID()
Buffer
getID in interface Buffer
protected void setSize(int size)
throws BufferException
Buffer.size.
BufferExceptionpublic int getSize()
public void setProperties(Properties props)
throws BufferException
setProperty(key, value) for each mapping in the
specified properties.
setProperties in interface BufferBufferException
public void setProperty(String key,
String value)
throws BufferException
Buffer.size property.
setProperty in interface BufferBufferExceptionpublic abstract void handle(Object message)
Bufferread().
handle in interface Bufferhandle in interface Consumermessage - The message.
public abstract Object[] read()
throws BufferException
Buffer
read in interface BufferBufferException - If a message could not be handled for some reason.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||