|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpalmed.edit.text.Cache
public final class Cache
This class implements a cache based on records.
| Constructor Summary | |
|---|---|
Cache(IRecordFactory factory,
int threshold)
Create a cache. |
|
| Method Summary | |
|---|---|
void |
add(ICachable cachable)
Add a component. |
void |
clear()
Clear the cache. |
void |
delete()
Delete the cache. |
java.util.Enumeration |
elements()
Retrieve an enumeration on all added components. |
void |
marshall(java.io.OutputStream stream)
Write to an output stream. |
void |
unmarshall(java.io.InputStream stream)
Read from an input stream. |
void |
wake(ICachable cachable)
Notify to wake a component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cache(IRecordFactory factory,
int threshold)
factory - the record factorythreshold - the maximum number of elements in cache at a time| Method Detail |
|---|
public java.util.Enumeration elements()
elements in interface ICachepublic void add(ICachable cachable)
add in interface ICachecachable - the componentpublic void wake(ICachable cachable)
wake in interface ICachecachable - the componentpublic void clear()
clear in interface ICache
public void unmarshall(java.io.InputStream stream)
throws java.io.IOException
unmarshall in interface ISerializablestream - the stream to read from
java.io.IOException - an io exception occurs
public void marshall(java.io.OutputStream stream)
throws java.io.IOException
marshall in interface ISerializablestream - the stream to write to
java.io.IOException - an io exception occurspublic void delete()
delete in interface ICache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||