|
Voyager ORB | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ISubspace is the interface implemented by Subspace.
Method Summary | |
void |
add(java.lang.Object object)
Add the specified object to this subspace. |
void |
addSubspaceListener(SubspaceListener listener)
Add the specified listener. |
void |
connect(ISubspace subspace)
Create a bidirectional connection with the specified subspace. |
boolean |
contains(java.lang.Object object)
Return true if I contain the specified object. |
void |
disconnect(ISubspace subspace)
Break the bidirectional connection with the specified subspace. |
java.lang.Object[] |
getContents()
Return an array of my objects. |
java.lang.Object |
getMarker(java.lang.Object key)
Return the value associated with the key, or null if there is none. |
Proxy |
getMulticastProxy(java.lang.String classname)
Return a multicast proxy associated with the specified class. |
ISubspace[] |
getNeighbors()
Return an array of references to all my neighboring subspaces. |
byte |
getPurgePolicy()
Return my current purge policy. |
boolean |
isNeighbor(ISubspace subspace)
Return true if the subspace given is a neighbor of this subspace. |
void |
purge(byte rule)
Purge myself using the specified rule. |
java.lang.Object |
putMarker(java.lang.Object key,
java.lang.Object value,
long lifetime)
Add and remember the key/value pair until the specified number of seconds has elapsed. |
boolean |
remove(java.lang.Object object)
Remove the specified object from this subspace. |
void |
removeSubspaceListener(SubspaceListener listener)
Remove the specified listener. |
void |
setPurgePolicy(byte policy)
Set my purge policy. |
int |
size()
Return the number of objects I contain. |
Method Detail |
public Proxy getMulticastProxy(java.lang.String classname) throws java.lang.ClassNotFoundException
classname
- The class whose instances will receive oneway messages.public void connect(ISubspace subspace)
subspace
- The subspace to connect with.public void disconnect(ISubspace subspace)
subspace
- The subspace to disconnect from.public ISubspace[] getNeighbors()
public boolean isNeighbor(ISubspace subspace)
subspace
- The subspace to test against.public void add(java.lang.Object object)
reference
- The object to add.public boolean remove(java.lang.Object object)
object
- The object to remove.public java.lang.Object[] getContents()
public boolean contains(java.lang.Object object)
object
- The object to find.public int size()
public void addSubspaceListener(SubspaceListener listener)
listener
- The listener to add.public void removeSubspaceListener(SubspaceListener listener)
listener
- The listener to remove.public void setPurgePolicy(byte policy)
policy
- The new purge policypublic byte getPurgePolicy()
public void purge(byte rule)
rule
- The purge rule to use.public java.lang.Object putMarker(java.lang.Object key, java.lang.Object value, long lifetime)
key
- The key.value
- The value to associate with the key.lifetime
- The number of seconds that the key/value pair should be remembered.public java.lang.Object getMarker(java.lang.Object key)
key
- The key.
|
ObjectSpace Inc. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |