public class SharedSpace
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
SharedSpace.Reaper
Class that cleans up the space of expired data
|
Constructor and Description |
---|
SharedSpace() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key)
Does data for the specified key exist in the space at the current time ?
|
java.lang.Object |
createKey()
Creates a key that is unique for this space.
|
void |
finalize() |
java.lang.Object |
get(java.lang.Object key)
Get an object from the space.
|
java.lang.Object |
get(java.lang.Object key,
long timeout)
Get and object from the space with the specified key.
|
void |
put(java.lang.Object key,
java.lang.Object data)
Place an object in the space.
|
void |
put(java.lang.Object key,
java.lang.Object data,
long time)
Place an object in the space.
|
java.lang.String |
toString()
Only shows the entries in the space hashtable
|
public java.lang.String toString()
toString
in class java.lang.Object
public void put(java.lang.Object key, java.lang.Object data)
public void put(java.lang.Object key, java.lang.Object data, long time)
public java.lang.Object get(java.lang.Object key)
public java.lang.Object get(java.lang.Object key, long timeout)
public java.lang.Object createKey()
public boolean containsKey(java.lang.Object key)
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable